MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / TestEqual

Function TestEqual

internal/utils/jsonutils/utils_test.go:12–26  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestEqual(t *testing.T) {
13 var a = assert.NewAssertion(t)
14
15 {
16 var m1 = maps.Map{"a": 1, "b2": true}
17 var m2 = maps.Map{"b2": true, "a": 1}
18 a.IsTrue(jsonutils.Equal(m1, m2))
19 }
20
21 {
22 var m1 = maps.Map{"a": 1, "b2": true, "c": nil}
23 var m2 = maps.Map{"b2": true, "a": 1}
24 a.IsFalse(jsonutils.Equal(m1, m2))
25 }
26}

Callers

nothing calls this directly

Calls 1

EqualFunction · 0.92

Tested by

no test coverage detected