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

Function TestJSONEqWrapper_HashesNotEquivalent

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

Source from the content-addressed store, hash-verified

619}
620
621func TestJSONEqWrapper_HashesNotEquivalent(t *testing.T) {
622 assert := New(new(testing.T))
623 if assert.JSONEq(`{"foo": "bar"}`, `{"foo": "bar", "hello": "world"}`) {
624 t.Error("JSONEq should return false")
625 }
626}
627
628func TestJSONEqWrapper_ActualIsNotJSON(t *testing.T) {
629 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