(t *testing.T)
| 625 | } |
| 626 | |
| 627 | func TestRepeatedNilText(t *testing.T) { |
| 628 | m := &pb2.MessageList{ |
| 629 | Message: []*pb2.MessageList_Message{ |
| 630 | nil, |
| 631 | &pb2.MessageList_Message{ |
| 632 | Name: proto.String("Horse"), |
| 633 | }, |
| 634 | nil, |
| 635 | }, |
| 636 | } |
| 637 | want := `Message { |
| 638 | } |
| 639 | Message { |
| 640 | name: "Horse" |
| 641 | } |
| 642 | Message { |
| 643 | } |
| 644 | ` |
| 645 | if got := proto.MarshalTextString(m); got != want { |
| 646 | t.Errorf("got:\n%s\n\nwant:\n%s", got, want) |
| 647 | } |
| 648 | } |
| 649 | |
| 650 | func TestProto3Text(t *testing.T) { |
| 651 | tests := []struct { |
nothing calls this directly
no test coverage detected