(text string)
| 737 | } |
| 738 | |
| 739 | func buildExtStructTest(text string) UnmarshalTextTest { |
| 740 | msg := &pb2.MyMessage{ |
| 741 | Count: proto.Int32(42), |
| 742 | } |
| 743 | proto.SetExtension(msg, pb2.E_Ext_More, &pb2.Ext{ |
| 744 | Data: proto.String("Hello, world!"), |
| 745 | }) |
| 746 | return UnmarshalTextTest{in: text, out: msg} |
| 747 | } |
| 748 | |
| 749 | func buildExtDataTest(text string) UnmarshalTextTest { |
| 750 | msg := &pb2.MyMessage{ |
no test coverage detected