MCPcopy Index your code
hub / github.com/expr-lang/expr / TestEqual

Function TestEqual

vm/runtime/helpers_test.go:38–48  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

36}
37
38func TestEqual(t *testing.T) {
39 for _, tt := range tests {
40 t.Run(tt.name, func(t *testing.T) {
41 got := runtime.Equal(tt.a, tt.b)
42 assert.Equal(t, tt.want, got, "Equal(%v, %v) = %v; want %v", tt.a, tt.b, got, tt.want)
43 got = runtime.Equal(tt.b, tt.a)
44 assert.Equal(t, tt.want, got, "Equal(%v, %v) = %v; want %v", tt.b, tt.a, got, tt.want)
45 })
46 }
47
48}
49
50func BenchmarkEqual(b *testing.B) {
51 for _, tt := range tests {

Callers

nothing calls this directly

Calls 3

EqualFunction · 0.92
EqualFunction · 0.92
RunMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…