============================================================================= REMOVAL 5: `keys[level][0] != '['` removed in searchKeys The original code was: `keys[level][0] != '[' || keys[level][keyLen-1] != ']'` within `if keyLevel == level && keys[level][0] == '['` So keys[level][0] != '[' was AL
(t *testing.T)
| 399 | |
| 400 | // Verifies: SYS-REQ-001 [boundary] |
| 401 | func TestRemoval5_SearchKeys_ArrayIndex_Valid(t *testing.T) { |
| 402 | data := []byte(`[1, "two", 3]`) |
| 403 | // searchKeys with "[1]" should find element at index 1 |
| 404 | offset := searchKeys(data, "[1]") |
| 405 | if offset == -1 { |
| 406 | t.Fatal("searchKeys failed to find array index [1]") |
| 407 | } |
| 408 | } |
| 409 | |
| 410 | // Verifies: SYS-REQ-001 [boundary] |
| 411 | func TestRemoval5_SearchKeys_ArrayIndex_MalformedNoClose(t *testing.T) { |
nothing calls this directly
no test coverage detected