MCPcopy
hub / github.com/stretchr/testify / TestFailNowWithPlainTestingT

Function TestFailNowWithPlainTestingT

assert/assertions_test.go:3064–3072  ·  assert/assertions_test.go::TestFailNowWithPlainTestingT
(t *testing.T)

Source from the content-addressed store, hash-verified

3062}
3063
3064func TestFailNowWithPlainTestingT(t *testing.T) {
3065 t.Parallel()
3066
3067 mockT := &mockTestingT{}
3068
3069 Panics(t, func() {
3070 FailNow(mockT, "failed")
3071 }, "should panic since mockT is missing FailNow()")
3072}
3073
3074type mockFailNowTestingT struct{}
3075

Callers

nothing calls this directly

Calls 2

PanicsFunction · 0.70
FailNowFunction · 0.70

Tested by

no test coverage detected