(t *testing.T)
| 509 | } |
| 510 | |
| 511 | func TestMarshaling(t *testing.T) { |
| 512 | for _, tt := range marshalingTests { |
| 513 | json, err := tt.marshaler.MarshalToString(tt.pb) |
| 514 | if err != nil { |
| 515 | t.Errorf("%s: marshaling error: %v", tt.desc, err) |
| 516 | } else if tt.json != json { |
| 517 | t.Errorf("%s:\ngot: %v\nwant: %v", tt.desc, json, tt.json) |
| 518 | } |
| 519 | } |
| 520 | } |
| 521 | |
| 522 | func TestMarshalingNil(t *testing.T) { |
| 523 | var msg *pb2.Simple |
nothing calls this directly
no test coverage detected