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

Function newDefaultDiffConfigMock

pkg/api/handlers_test.go:79–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79func newDefaultDiffConfigMock() *diffConfigMock {
80 c := &diffConfigMock{
81 MyInt: 666,
82 MyFloat: 6.66,
83 MySlice: []string{"value1", "value2"},
84 IgnoredField: func() error { return nil },
85 }
86 c.MyNestedStruct.MyString = "string1"
87 return c
88}
89
90func TestConfigDiffHandler(t *testing.T) {
91 for _, tc := range []struct {

Callers 1

TestConfigDiffHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected