(t *testing.T)
| 1279 | } |
| 1280 | |
| 1281 | func TestUnmarshalTextCustomMessage(t *testing.T) { |
| 1282 | msg := &textMessage{} |
| 1283 | if err := proto.UnmarshalText("custom", msg); err != nil { |
| 1284 | t.Errorf("proto.UnmarshalText error: %v", err) |
| 1285 | } |
| 1286 | if err := proto.UnmarshalText("not custom", msg); err == nil { |
| 1287 | t.Errorf("proto.UnmarshalText: got nil error, want non-nil") |
| 1288 | } |
| 1289 | } |
| 1290 | |
| 1291 | // Regression test; this caused a panic. |
| 1292 | func TestRepeatedEnum(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…