MCPcopy Create free account
hub / github.com/google/go-cloud / TestBytesDecoder

Function TestBytesDecoder

runtimevar/runtimevar_test.go:628–637  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

626}
627
628func 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
639func TestDecryptDecoder(t *testing.T) {
640 ctx := context.Background()

Callers

nothing calls this directly

Calls 1

DecodeMethod · 0.45

Tested by

no test coverage detected