(t *testing.T)
| 587 | } |
| 588 | |
| 589 | func TestUnmarshalTextCustomMessage(t *testing.T) { |
| 590 | msg := &textMessage{} |
| 591 | if err := UnmarshalText("custom", msg); err != nil { |
| 592 | t.Errorf("Unexpected error from custom unmarshal: %v", err) |
| 593 | } |
| 594 | if UnmarshalText("not custom", msg) == nil { |
| 595 | t.Errorf("Didn't get expected error from custom unmarshal") |
| 596 | } |
| 597 | } |
| 598 | |
| 599 | // Regression test; this caused a panic. |
| 600 | func TestRepeatedEnum(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…