MCPcopy
hub / github.com/expr-lang/expr / TestEqualWrapper

Function TestEqualWrapper

internal/testify/assert/forward_assertions_test.go:33–51  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
EqualMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…