Verifies: SYS-REQ-007 [boundary]
(t *testing.T)
| 25 | |
| 26 | // Verifies: SYS-REQ-007 [boundary] |
| 27 | func TestObjectEach_OOB_TruncatedAfterColon(t *testing.T) { |
| 28 | // {"a": — truncated after colon |
| 29 | err := ObjectEach([]byte(`{"a":`), func(key []byte, value []byte, dataType ValueType, offset int) error { |
| 30 | return nil |
| 31 | }) |
| 32 | if err == nil { |
| 33 | t.Fatal("expected error for truncated object after colon") |
| 34 | } |
| 35 | t.Logf("Correctly got error: %v", err) |
| 36 | } |
| 37 | |
| 38 | // Verifies: SYS-REQ-007 [boundary] |
| 39 | func TestObjectEach_OOB_TruncatedAfterKey(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…