(t *testing.T)
| 2460 | } |
| 2461 | |
| 2462 | func TestFailNowWithPlainTestingT(t *testing.T) { |
| 2463 | mockT := &mockTestingT{} |
| 2464 | |
| 2465 | Panics(t, func() { |
| 2466 | FailNow(mockT, "failed") |
| 2467 | }, "should panic since mockT is missing FailNow()") |
| 2468 | } |
| 2469 | |
| 2470 | type mockFailNowTestingT struct { |
| 2471 | } |