Regression test; this caused a panic.
(t *testing.T)
| 598 | |
| 599 | // Regression test; this caused a panic. |
| 600 | func TestRepeatedEnum(t *testing.T) { |
| 601 | pb := new(RepeatedEnum) |
| 602 | if err := UnmarshalText("color: RED", pb); err != nil { |
| 603 | t.Fatal(err) |
| 604 | } |
| 605 | exp := &RepeatedEnum{ |
| 606 | Color: []RepeatedEnum_Color{RepeatedEnum_RED}, |
| 607 | } |
| 608 | if !Equal(pb, exp) { |
| 609 | t.Errorf("Incorrect populated \nHave: %v\nWant: %v", pb, exp) |
| 610 | } |
| 611 | } |
| 612 | |
| 613 | func TestProto3TextParsing(t *testing.T) { |
| 614 | m := new(proto3pb.Message) |
nothing calls this directly
no test coverage detected
searching dependent graphs…