MCPcopy Create free account
hub / github.com/buger/jsonparser / TestRemoval5_SearchKeys_ArrayIndex_NestedObject

Function TestRemoval5_SearchKeys_ArrayIndex_NestedObject

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

Verifies: SYS-REQ-001 [boundary]

(t *testing.T)

Source from the content-addressed store, hash-verified

429
430// Verifies: SYS-REQ-001 [boundary]
431func TestRemoval5_SearchKeys_ArrayIndex_NestedObject(t *testing.T) {
432 data := []byte(`[{"a":1},{"a":2}]`)
433 offset := searchKeys(data, "[1]", "a")
434 if offset == -1 {
435 t.Fatal("searchKeys failed to find [1].a")
436 }
437}
438
439// =============================================================================
440// 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