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

Function JSONEqf

internal/testify/assert/assertion_format.go:452–457  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

450//
451// assert.JSONEqf(t, `{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`, "error message %s", "formatted")
452func JSONEqf(t TestingT, expected string, actual string, msg string, args ...interface{}) bool {
453 if h, ok := t.(tHelper); ok {
454 h.Helper()
455 }
456 return JSONEq(t, expected, actual, append([]interface{}{msg}, args...)...)
457}
458
459// Lenf asserts that the specified object has specific length.
460// Lenf also fails if the object has a type that len() not accept.

Callers 2

JSONEqfFunction · 0.92
JSONEqfMethod · 0.70

Calls 2

JSONEqFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…