MCPcopy Create free account
hub / github.com/cortexproject/cortex / TestConfig_RegisterFlags

Function TestConfig_RegisterFlags

pkg/overrides/overrides_test.go:75–83  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

73}
74
75func TestConfig_RegisterFlags(t *testing.T) {
76 cfg := runtimeconfig.Config{}
77
78 // Test that flags are registered without panicking
79 require.NotPanics(t, func() {
80 flagSet := flag.NewFlagSet("test", flag.PanicOnError)
81 cfg.RegisterFlags(flagSet)
82 })
83}
84
85func TestNew(t *testing.T) {
86 tests := map[string]struct {

Callers

nothing calls this directly

Calls 1

RegisterFlagsMethod · 0.95

Tested by

no test coverage detected