VictoriaMetrics/app/vmalert-tool/unittest
Aliaksandr Valialkin fc98b62760
lib/promutils, app/vmalert-tool/unittest: move promutils.Duration.ParseTime() to app/vmalert-tool/unittest.durationToTime()
The ParseTime() function looks strange, since it converts relative duration to absolute time since Unix Epoch.
In most scenarios such a conversion is used by mistake.

It is better to do not expose such a function for public use and hide it inside the package where it is needed,
e.g. inside app/vmalert-tool/unittest.

This is a follow-up for dc28196237
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2945
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/4789
2023-10-16 14:19:31 +02:00
..
testdata vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00
alerting.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00
input_test.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00
input.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00
recording.go lib/promutils, app/vmalert-tool/unittest: move promutils.Duration.ParseTime() to app/vmalert-tool/unittest.durationToTime() 2023-10-16 14:19:31 +02:00
type.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00
unittest_test.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00
unittest.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00