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

Function readerFromConfig

pkg/configs/api/helpers_test.go:103–107  ·  view source on GitHub ↗
(t *testing.T, config userconfig.Config)

Source from the content-addressed store, hash-verified

101}
102
103func readerFromConfig(t *testing.T, config userconfig.Config) io.Reader {
104 b, err := json.Marshal(config)
105 require.NoError(t, err)
106 return bytes.NewReader(b)
107}
108
109// parseView parses a userconfig.View from JSON.
110func parseView(t *testing.T, b []byte) userconfig.View {

Calls 1

MarshalMethod · 0.45

Tested by

no test coverage detected