(next bool, err error)
| 17 | } |
| 18 | |
| 19 | func newTestIterator(next bool, err error) graph.Iterator { |
| 20 | return &testIterator{ |
| 21 | Iterator: NewFixed(), |
| 22 | NextVal: next, |
| 23 | ErrVal: err, |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | func (it *testIterator) Next(ctx context.Context) bool { |
| 28 | return it.NextVal |
no test coverage detected