MCPcopy
hub / github.com/tidwall/gjson / assert

Function assert

gjson_test.go:662–666  ·  view source on GitHub ↗
(t testing.TB, cond bool)

Source from the content-addressed store, hash-verified

660 unescape(string([]byte{'\\', '/', '\\', 'b', '\\', 'f'}))
661}
662func assert(t testing.TB, cond bool) {
663 if !cond {
664 panic("assert failed")
665 }
666}
667func TestLess(t *testing.T) {
668 assert(t, !Result{Type: Null}.Less(Result{Type: Null}, true))
669 assert(t, Result{Type: Null}.Less(Result{Type: False}, true))

Callers 15

TestPathFunction · 0.85
TestTimeResultFunction · 0.85
TestParseAnyFunction · 0.85
TestManyRecursionFunction · 0.85
TestIsArrayIsObjectFunction · 0.85
TestPlus53BitIntsFunction · 0.85
TestTypesFunction · 0.85
TestForEachFunction · 0.85
TestMapFunction · 0.85
TestBasic1Function · 0.85
TestLessFunction · 0.85
TestQueriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…