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