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

Function TestEqualWrapper

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

Source from the content-addressed store, hash-verified

35}
36
37func TestEqualWrapper(t *testing.T) {
38 t.Parallel()
39
40 assert := New(new(testing.T))
41
42 if !assert.Equal("Hello World", "Hello World") {
43 t.Error("Equal should return true")
44 }
45 if !assert.Equal(123, 123) {
46 t.Error("Equal should return true")
47 }
48 if !assert.Equal(123.5, 123.5) {
49 t.Error("Equal should return true")
50 }
51 if !assert.Equal([]byte("Hello World"), []byte("Hello World")) {
52 t.Error("Equal should return true")
53 }
54 if !assert.Equal(nil, nil) {
55 t.Error("Equal should return true")
56 }
57}
58
59func TestEqualValuesWrapper(t *testing.T) {
60 t.Parallel()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
EqualMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected