(ctx context.Context)
| 149 | } |
| 150 | |
| 151 | func (b *bookmark[T]) done(ctx context.Context) bool { |
| 152 | nextID, err := b.iter.peekNextID(ctx) |
| 153 | if !errors.Is(err, util.ErrUnsupported) { |
| 154 | return nextID == nil || err != nil |
| 155 | } |
| 156 | |
| 157 | _, obj, err := b.current(ctx) |
| 158 | |
| 159 | return obj == nil || err != nil |
| 160 | } |
| 161 | |
| 162 | func (b *bookmark[T]) clear() { |
| 163 | b.currentID = nil |
no test coverage detected