(t *testing.T)
| 1464 | } |
| 1465 | |
| 1466 | func TestReset(t *testing.T) { |
| 1467 | mi := new(testpb.TestAllTypes) |
| 1468 | |
| 1469 | // ProtoReflect is implemented using a messageState cache. |
| 1470 | m := mi.ProtoReflect() |
| 1471 | |
| 1472 | // Reset must not clear the messageState cache. |
| 1473 | mi.Reset() |
| 1474 | |
| 1475 | // If Reset accidentally cleared the messageState cache, this panics. |
| 1476 | m.Descriptor() |
| 1477 | } |
| 1478 | |
| 1479 | func TestIsValid(t *testing.T) { |
| 1480 | var m *testpb.TestAllTypes |
nothing calls this directly
no test coverage detected