(t *testing.T)
| 286 | } |
| 287 | |
| 288 | func TestUnmarshalAnyMixAndMatch(t *testing.T) { |
| 289 | pb := &types.Any{} |
| 290 | err := proto.UnmarshalText(` |
| 291 | value: "\n\x05Monty" |
| 292 | [type.googleapis.com/a/path/proto3_proto.Nested]: < |
| 293 | bunny: "Rabbit of Caerbannog" |
| 294 | > |
| 295 | `, pb) |
| 296 | want := `line 5: Any message unpacked multiple times, or "value" already set` |
| 297 | if err.Error() != want { |
| 298 | t.Errorf("incorrect error.\nHave: %v\nWant: %v", err.Error(), want) |
| 299 | } |
| 300 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…