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

Function TestFailNowWithFullTestingT

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

Source from the content-addressed store, hash-verified

2679func (m *mockFailNowTestingT) FailNow() {}
2680
2681func TestFailNowWithFullTestingT(t *testing.T) {
2682 mockT := &mockFailNowTestingT{}
2683
2684 NotPanics(t, func() {
2685 FailNow(mockT, "failed")
2686 }, "should call mockT.FailNow() rather than panicking")
2687}
2688
2689func TestBytesEqual(t *testing.T) {
2690 var cases = []struct {

Callers

nothing calls this directly

Calls 2

NotPanicsFunction · 0.70
FailNowFunction · 0.70

Tested by

no test coverage detected