Lines Matching full:decode
98 return errors.New("wrong length in array decode")
250 err = dec.Decode(x)
252 t.Fatal("decode error:", err)
267 err = dec.Decode(y)
269 t.Fatal("decode error:", err)
288 err = dec.Decode(x)
290 t.Fatal("decode error:", err)
297 // GobEncode/Decode should work even if the value is
311 err = dec.Decode(x)
313 t.Fatal("decode error:", err)
335 err = dec.Decode(x)
337 t.Fatal("decode error:", err)
366 err = dec.Decode(x)
368 t.Fatal("decode error:", err)
393 err = dec.Decode(x)
395 t.Fatal("decode error:", err)
407 err = dec.Decode(y)
409 t.Fatal("decode error:", err)
416 // Test that we can encode a value and decode into a pointer.
427 err = dec.Decode(x)
429 t.Fatal("decode error:", err)
456 if err := dec.Decode(x); err != nil {
457 t.Fatal("decode error:", err)
505 if err := dec.Decode(x); err != nil {
506 t.Fatal("decode error:", err)
547 err = dec.Decode(x)
549 t.Fatal("expected decode error for mismatched fields (encoder to non-decoder)")
561 err = dec.Decode(y)
563 t.Fatal("expected decode error for mismatched fields (non-encoder to decoder)")
580 err = dec.Decode(x)
582 t.Fatal("decode error:", err)
599 err = dec.Decode(&x)
601 t.Fatal("decode error:", err)
618 err = dec.Decode(x)
620 t.Fatal("decode error:", err)
640 err = dec.Decode(x)
642 t.Fatal("decode error:", err)
659 err = dec.Decode(x)
661 t.Fatal("decode error:", err)
700 if err := d.Decode(&got); err != nil {
701 t.Fatalf("decode: %v", err)
758 err = dec.Decode(&y)
760 t.Fatal("decode:", err)
777 err = dec.Decode(&err2)
779 t.Fatal("decode:", err)
791 err := NewDecoder(bytes.NewReader(enc)).Decode(&ip)
793 t.Fatalf("decode: %v", err)