refactor: make internals easier to test and add unit tests #2

Merged
Emmanuel BENOîT merged 13 commits from tseeker/gomonop:20240719-more-tests into master 2024-07-20 10:01:05 +02:00

13 commits

Author SHA1 Message Date
10b9933e6a
chore: merge master --> 20240719-more-tests
All checks were successful
Run tests and linters / test (pull_request) Successful in 45s
Run tests and linters / build (pull_request) Successful in 48s
Run tests and linters / lint (pull_request) Successful in 1m23s
2024-07-20 09:39:27 +02:00
9f282c40f9
test(pkg): add tests for version 2024-07-20 00:25:31 +02:00
1a29325c34
refactor(pkg): rename internals so their names actually make sense
A "program" was in fact a plugin, while a "plugin" represented the
plugin's results.
2024-07-20 00:20:28 +02:00
ffbec78937
test(pkg): add tests for plugin 2024-07-20 00:05:58 +02:00
1e0304f450
chore(pkg): fix copypasta in comments 2024-07-19 23:50:50 +02:00
5432360f0e
refactor(pkg): refactor Plugin to make it easier to test
Writing the plugin's output string and exiting the program will no
longer take place in the plugin status itself. It will only be done in
the main program.
2024-07-19 23:46:33 +02:00
b3aa7dfcad
refactor(pkg): rename plugin status constants 2024-07-19 23:27:37 +02:00
ebdb99be8b
refactor(pkg): split plugin into multiple files 2024-07-19 23:24:19 +02:00
cf88d63bc2
refactor(pkg): clean up perfdata to string conversion 2024-07-19 23:20:41 +02:00
47b342b317
refactor(pkg): rename PDRange to Range 2024-07-19 23:16:57 +02:00
db47981d23
test(pkg): add tests for all parts of perfdata 2024-07-19 23:15:40 +02:00
70670e0657
refactor(pkg): split perfdata across multiple files 2024-07-19 23:14:59 +02:00
0776ee6741
chore: add testify to dependencies 2024-07-19 23:12:55 +02:00