MCPcopy Create free account
hub / github.com/stretchr/testify / TestJSONEqWrapper_Array

Function TestJSONEqWrapper_Array

require/forward_requirements_test.go:329–337  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

327}
328
329func TestJSONEqWrapper_Array(t *testing.T) {
330 mockT := new(MockT)
331 mockRequire := New(mockT)
332
333 mockRequire.JSONEq(`["foo", {"hello": "world", "nested": "hash"}]`, `["foo", {"nested": "hash", "hello": "world"}]`)
334 if mockT.Failed {
335 t.Error("Check should pass")
336 }
337}
338
339func TestJSONEqWrapper_HashAndArrayNotEquivalent(t *testing.T) {
340 mockT := new(MockT)

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
JSONEqMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected