Verifies: SYS-REQ-007 [boundary]
(t *testing.T)
| 37 | |
| 38 | // Verifies: SYS-REQ-007 [boundary] |
| 39 | func TestObjectEach_OOB_TruncatedAfterKey(t *testing.T) { |
| 40 | // {"a" — truncated after key string |
| 41 | err := ObjectEach([]byte(`{"a"`), func(key []byte, value []byte, dataType ValueType, offset int) error { |
| 42 | return nil |
| 43 | }) |
| 44 | if err == nil { |
| 45 | t.Fatal("expected error for truncated object after key") |
| 46 | } |
| 47 | t.Logf("Correctly got error: %v", err) |
| 48 | } |
| 49 | |
| 50 | // Verifies: SYS-REQ-007 [boundary] |
| 51 | func TestObjectEach_OOB_TruncatedMidKey(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…