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

Method JSONEq

internal/testify/assert/assertion_forward.go:890–895  ·  view source on GitHub ↗

JSONEq asserts that two JSON strings are equivalent. a.JSONEq(`{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`)

(expected string, actual string, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

888//
889// a.JSONEq(`{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`)
890func (a *Assertions) JSONEq(expected string, actual string, msgAndArgs ...interface{}) bool {
891 if h, ok := a.t.(tHelper); ok {
892 h.Helper()
893 }
894 return JSONEq(a.t, expected, actual, msgAndArgs...)
895}
896
897// JSONEqf asserts that two JSON strings are equivalent.
898//

Calls 2

JSONEqFunction · 0.70
HelperMethod · 0.45