(t *testing.T)
| 626 | } |
| 627 | |
| 628 | func TestBytesDecoder(t *testing.T) { |
| 629 | input := []byte("hello world") |
| 630 | got, err := BytesDecoder.Decode(context.Background(), input) |
| 631 | if err != nil { |
| 632 | t.Fatalf("error: %v", err) |
| 633 | } |
| 634 | if diff := cmp.Diff(got, input); diff != "" { |
| 635 | t.Errorf("output got %v, want %q", got, input) |
| 636 | } |
| 637 | } |
| 638 | |
| 639 | func TestDecryptDecoder(t *testing.T) { |
| 640 | ctx := context.Background() |