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

Function TestJSONEqWrapper_ExpectedIsNotJSON

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

Source from the content-addressed store, hash-verified

633}
634
635func TestJSONEqWrapper_ExpectedIsNotJSON(t *testing.T) {
636 assert := New(new(testing.T))
637 if assert.JSONEq("Not JSON", `{"foo": "bar", "hello": "world"}`) {
638 t.Error("JSONEq should return false")
639 }
640}
641
642func TestJSONEqWrapper_ExpectedAndActualNotJSON(t *testing.T) {
643 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