MCPcopy Create free account
hub / github.com/expr-lang/expr / TestJSONEq_Array

Function TestJSONEq_Array

internal/testify/require/requirements_test.go:327–333  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

325}
326
327func TestJSONEq_Array(t *testing.T) {
328 mockT := new(MockT)
329 JSONEq(mockT, `["foo", {"hello": "world", "nested": "hash"}]`, `["foo", {"nested": "hash", "hello": "world"}]`)
330 if mockT.Failed {
331 t.Error("Check should pass")
332 }
333}
334
335func TestJSONEq_HashAndArrayNotEquivalent(t *testing.T) {
336 mockT := new(MockT)

Callers

nothing calls this directly

Calls 2

JSONEqFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…