MCPcopy Index your code
hub / github.com/goadesign/goa / TestTextPlainDecoder_Decode_Other

Function TestTextPlainDecoder_Decode_Other

http/encoding_test.go:325–333  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

323}
324
325func TestTextPlainDecoder_Decode_Other(t *testing.T) {
326 decoder := makeTextDecoder()
327 expectedErr := fmt.Errorf("can't decode content/type to *int")
328 var value int
329
330 err := decoder.Decode(&value)
331
332 assert.Error(t, err, expectedErr)
333}
334
335func makeTextDecoder() Decoder {
336 buffer := bytes.Buffer{}

Callers

nothing calls this directly

Calls 3

makeTextDecoderFunction · 0.85
DecodeMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected