ananke/internal/metrics/testing_hooks.go

18 lines
663 B
Go
Raw Permalink Normal View History

package metrics
// TestHookBoolNum runs one orchestration or CLI step.
// Signature: TestHookBoolNum(v bool) int.
// Why: top-level testing module coverage still needs explicit access to the
// boolean-to-metric helper without keeping package-local root tests around.
func TestHookBoolNum(v bool) int {
return boolNum(v)
}
// TestHookSafeLabelValue runs one orchestration or CLI step.
// Signature: TestHookSafeLabelValue(in string) string.
// Why: top-level testing module coverage still needs to verify label escaping
// behavior directly while split-module migration removes in-tree tests.
func TestHookSafeLabelValue(in string) string {
return safe(in)
}