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

Function JSONEqf

internal/testify/require/require.go:1139–1147  ·  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

1137//
1138// assert.JSONEqf(t, `{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`, "error message %s", "formatted")
1139func JSONEqf(t TestingT, expected string, actual string, msg string, args ...interface{}) {
1140 if h, ok := t.(tHelper); ok {
1141 h.Helper()
1142 }
1143 if assert.JSONEqf(t, expected, actual, msg, args...) {
1144 return
1145 }
1146 t.FailNow()
1147}
1148
1149// Len asserts that the specified object has specific length.
1150// Len also fails if the object has a type that len() not accept.

Callers 1

JSONEqfMethod · 0.70

Calls 3

JSONEqfFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…