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

Method CanEncode

pkg/api/queryapi/query_api_test.go:214–216  ·  view source on GitHub ↗
(_ *v1.Response)

Source from the content-addressed store, hash-verified

212}
213
214func (m *mockCodec) CanEncode(_ *v1.Response) bool {
215 return false
216}
217
218func (m *mockCodec) Encode(_ *v1.Response) ([]byte, error) {
219 return nil, errors.New("encode err")

Callers 1

negotiateCodecMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected