MCPcopy
hub / github.com/tidwall/sjson / fmtErrorf

Function fmtErrorf

sjson_test.go:253–264  ·  view source on GitHub ↗
(e testError)

Source from the content-addressed store, hash-verified

251}
252
253func fmtErrorf(e testError) string {
254 return fmt.Sprintf(
255 "Unexpected %s:\n\t"+
256 "for=%q\n\t"+
257 "i=%d\n\t"+
258 "len(input)=%d\n\t"+
259 "input=%v\n\t"+
260 "expected=%v\n\t"+
261 "result=%v",
262 e.unexpected, e.desc, e.i, e.lenInput, e.input, e.expected, e.result,
263 )
264}
265
266func TestSetDotKeyIssue10(t *testing.T) {
267 json := `{"app.token":"abc"}`

Callers 1

TestDeleteIssue21Function · 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…