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

Method JSONEqf

internal/testify/assert/assertion_forward.go:900–905  ·  view source on GitHub ↗

JSONEqf asserts that two JSON strings are equivalent. a.JSONEqf(`{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`, "error message %s", "formatted")

(expected string, actual string, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

898//
899// a.JSONEqf(`{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`, "error message %s", "formatted")
900func (a *Assertions) JSONEqf(expected string, actual string, msg string, args ...interface{}) bool {
901 if h, ok := a.t.(tHelper); ok {
902 h.Helper()
903 }
904 return JSONEqf(a.t, expected, actual, msg, args...)
905}
906
907// Len asserts that the specified object has specific length.
908// Len also fails if the object has a type that len() not accept.

Callers

nothing calls this directly

Calls 2

JSONEqfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected