Verifies: SYS-REQ-001 [boundary]
(t *testing.T)
| 413 | |
| 414 | // Verifies: SYS-REQ-001 [boundary] |
| 415 | func TestRemoval5_SearchKeys_ArrayIndex_TooShort(t *testing.T) { |
| 416 | data := []byte(`[1, 2, 3]`) |
| 417 | // "[]" has keyLen=2 which is < 3 — still caught |
| 418 | offset := searchKeys(data, "[]") |
| 419 | if offset != -1 { |
| 420 | t.Fatalf("expected -1 for empty index '[]', got %d", offset) |
| 421 | } |
| 422 | } |
| 423 | |
| 424 | // Verifies: SYS-REQ-001 [boundary] |
| 425 | func TestRemoval5_SearchKeys_ArrayIndex_NestedObject(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…