Verifies: SYS-REQ-007 [boundary]
(t *testing.T)
| 73 | |
| 74 | // Verifies: SYS-REQ-007 [boundary] |
| 75 | func TestObjectEach_OOB_BraceAndWhitespace(t *testing.T) { |
| 76 | // { — opening brace then only whitespace |
| 77 | err := ObjectEach([]byte(`{ `), func(key []byte, value []byte, dataType ValueType, offset int) error { |
| 78 | return nil |
| 79 | }) |
| 80 | if err == nil { |
| 81 | t.Fatal("expected error for brace+whitespace") |
| 82 | } |
| 83 | t.Logf("Correctly got error: %v", err) |
| 84 | } |
| 85 | |
| 86 | // ArrayEach infinite loop guard: verify o==0 catches all no-progress cases |
| 87 | // Verifies: SYS-REQ-006 [boundary] |
nothing calls this directly
no test coverage detected