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

Function TestNotEqual

require/requirements_test.go:80–89  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

78}
79
80func TestNotEqual(t *testing.T) {
81 t.Parallel()
82
83 NotEqual(t, 1, 2)
84 mockT := new(MockT)
85 NotEqual(mockT, 2, 2)
86 if !mockT.Failed {
87 t.Error("Check should fail")
88 }
89}
90
91func TestExactly(t *testing.T) {
92 t.Parallel()

Callers

nothing calls this directly

Calls 2

NotEqualFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected