(t *testing.T)
| 124 | } |
| 125 | |
| 126 | func TestSelfMarshalerWithDescriptor(t *testing.T) { |
| 127 | m := &descSelfMarshaler{} |
| 128 | got, err := proto.Marshal(impl.Export{}.MessageOf(m).Interface()) |
| 129 | want := []byte(descSelfMarshalerBytes) |
| 130 | if err != nil || !bytes.Equal(got, want) { |
| 131 | t.Fatalf("proto.Marshal(%v) = %v, %v; want %v, nil", m, got, err, want) |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | func TestDecodeFastCheckInitialized(t *testing.T) { |
| 136 | for _, test := range testValidMessages { |