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

Function TestJSONEqWrapper_EqualSONString

assert/forward_assertions_test.go:582–588  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

580}
581
582func TestJSONEqWrapper_EqualSONString(t *testing.T) {
583 assert := New(new(testing.T))
584 if !assert.JSONEq(`{"hello": "world", "foo": "bar"}`, `{"hello": "world", "foo": "bar"}`) {
585 t.Error("JSONEq should return true")
586 }
587
588}
589
590func TestJSONEqWrapper_EquivalentButNotEqual(t *testing.T) {
591 assert := New(new(testing.T))

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
JSONEqMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected