Verifies: SYS-REQ-007 [boundary]
(t *testing.T)
| 59 | |
| 60 | // Verifies: SYS-REQ-007 [boundary] |
| 61 | func TestRemoval1_ObjectEach_LoopExitsOnEmptyObject(t *testing.T) { |
| 62 | err := ObjectEach([]byte(`{}`), func(key []byte, value []byte, dataType ValueType, offset int) error { |
| 63 | t.Fatal("callback should not be called for empty object") |
| 64 | return nil |
| 65 | }) |
| 66 | if err != nil { |
| 67 | t.Fatalf("unexpected error on empty object: %v", err) |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | // Verifies: SYS-REQ-007 [boundary] |
| 72 | func TestRemoval1_ObjectEach_LoopExitsOnSingleEntry(t *testing.T) { |
nothing calls this directly
no test coverage detected