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

Function TestNotEqualValuesWrapper

assert/forward_assertions_test.go:176–199  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

174}
175
176func TestNotEqualValuesWrapper(t *testing.T) {
177 t.Parallel()
178
179 assert := New(new(testing.T))
180
181 if !assert.NotEqualValues("Hello World", "Hello World!") {
182 t.Error("NotEqualValues should return true")
183 }
184 if !assert.NotEqualValues(123, 1234) {
185 t.Error("NotEqualValues should return true")
186 }
187 if !assert.NotEqualValues(123.5, 123.55) {
188 t.Error("NotEqualValues should return true")
189 }
190 if !assert.NotEqualValues([]byte("Hello World"), []byte("Hello World!")) {
191 t.Error("NotEqualValues should return true")
192 }
193 if !assert.NotEqualValues(nil, new(AssertionTesterConformingObject)) {
194 t.Error("NotEqualValues should return true")
195 }
196 if assert.NotEqualValues(10, uint(10)) {
197 t.Error("NotEqualValues should return false")
198 }
199}
200
201func TestContainsWrapper(t *testing.T) {
202 t.Parallel()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
NotEqualValuesMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected