MCPcopy
hub / github.com/buger/jsonparser / TestRemoval5_SearchKeys_ArrayIndex_NestedObject

Function TestRemoval5_SearchKeys_ArrayIndex_NestedObject

dead_code_audit_test.go:425–431  ·  view source on GitHub ↗

Verifies: SYS-REQ-001 [boundary]

(t *testing.T)

Source from the content-addressed store, hash-verified

423
424// Verifies: SYS-REQ-001 [boundary]
425func TestRemoval5_SearchKeys_ArrayIndex_NestedObject(t *testing.T) {
426 data := []byte(`[{"a":1},{"a":2}]`)
427 offset := searchKeys(data, "[1]", "a")
428 if offset == -1 {
429 t.Fatal("searchKeys failed to find [1].a")
430 }
431}
432
433// =============================================================================
434// REMOVAL 6: `if e != nil` inside `if o == 0` removed in ArrayEach

Callers

nothing calls this directly

Calls 1

searchKeysFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…