Commit graph

5 commits

Author SHA1 Message Date
1f9be057b6
fix(pkg): fix using ~ as the lower bound for RangeMinMax 2024-07-20 20:33:15 +02:00
7209591e08
feat(pkg): add Range.Contains() method 2024-07-20 18:42:18 +02:00
6d44df6216
fix(pkg): range parser supports single numbers
These are `[0:X]` ranges, according to the Nagios doc.
2024-07-20 18:17:53 +02:00
14c7a0e5e8
feat(pkg): add parser for perf data ranges 2024-07-20 16:22:22 +02:00
78af496fe9 refactor: make internals easier to test and add unit tests (#2)
All checks were successful
Run tests and linters / test (push) Successful in 44s
Run tests and linters / build (push) Successful in 47s
Run tests and linters / lint (push) Successful in 1m20s
This PR refactors most of the internals to make them easier to test (and also because the names didn't make sense). It adds unit tests for all internal components.

Reviewed-on: #2
Co-authored-by: Emmanuel BENOÎT <tseeker@nocternity.net>
Co-committed-by: Emmanuel BENOÎT <tseeker@nocternity.net>
2024-07-20 10:01:05 +02:00