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

Function TestNotEqualWrapper

require/forward_requirements_test.go:66–78  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

64}
65
66func TestNotEqualWrapper(t *testing.T) {
67 t.Parallel()
68
69 require := New(t)
70 require.NotEqual(1, 2)
71
72 mockT := new(MockT)
73 mockRequire := New(mockT)
74 mockRequire.NotEqual(2, 2)
75 if !mockT.Failed {
76 t.Error("Check should fail")
77 }
78}
79
80func TestExactlyWrapper(t *testing.T) {
81 t.Parallel()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
NotEqualMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…