Verifies: SYS-REQ-007 [boundary]
(t *testing.T)
| 61 | |
| 62 | // Verifies: SYS-REQ-007 [boundary] |
| 63 | func TestObjectEach_OOB_JustOpenBrace(t *testing.T) { |
| 64 | // { — only opening brace, then nothing |
| 65 | err := ObjectEach([]byte(`{`), func(key []byte, value []byte, dataType ValueType, offset int) error { |
| 66 | return nil |
| 67 | }) |
| 68 | if err == nil { |
| 69 | t.Fatal("expected error for just opening brace") |
| 70 | } |
| 71 | t.Logf("Correctly got error: %v", err) |
| 72 | } |
| 73 | |
| 74 | // Verifies: SYS-REQ-007 [boundary] |
| 75 | func TestObjectEach_OOB_BraceAndWhitespace(t *testing.T) { |
nothing calls this directly
no test coverage detected