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

Function parseView

pkg/configs/api/helpers_test.go:110–115  ·  view source on GitHub ↗

parseView parses a userconfig.View from JSON.

(t *testing.T, b []byte)

Source from the content-addressed store, hash-verified

108
109// parseView parses a userconfig.View from JSON.
110func parseView(t *testing.T, b []byte) userconfig.View {
111 var x userconfig.View
112 err := json.Unmarshal(b, &x)
113 require.NoError(t, err, "Could not unmarshal JSON: %v", string(b))
114 return x
115}

Callers 2

getMethod · 0.85

Calls 1

UnmarshalMethod · 0.45

Tested by

no test coverage detected