Verifies: SYS-REQ-007 [boundary]
(t *testing.T)
| 70 | |
| 71 | // Verifies: SYS-REQ-007 [boundary] |
| 72 | func TestRemoval1_ObjectEach_LoopExitsOnSingleEntry(t *testing.T) { |
| 73 | count := 0 |
| 74 | err := ObjectEach([]byte(`{"a":1}`), func(key []byte, value []byte, dataType ValueType, offset int) error { |
| 75 | count++ |
| 76 | return nil |
| 77 | }) |
| 78 | if err != nil { |
| 79 | t.Fatalf("unexpected error: %v", err) |
| 80 | } |
| 81 | if count != 1 { |
| 82 | t.Fatalf("expected 1 callback, got %d", count) |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | // ============================================================================= |
| 87 | // REMOVAL 2: `end == -1` guard removed in getType |
nothing calls this directly
no test coverage detected