MCPcopy Create free account
hub / github.com/stretchr/testify / TestFailNowWithPlainTestingT

Function TestFailNowWithPlainTestingT

assert/assertions_test.go:2666–2672  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2664}
2665
2666func TestFailNowWithPlainTestingT(t *testing.T) {
2667 mockT := &mockTestingT{}
2668
2669 Panics(t, func() {
2670 FailNow(mockT, "failed")
2671 }, "should panic since mockT is missing FailNow()")
2672}
2673
2674type mockFailNowTestingT struct {
2675}

Callers

nothing calls this directly

Calls 2

PanicsFunction · 0.70
FailNowFunction · 0.70

Tested by

no test coverage detected