MCPcopy
hub / github.com/cayleygraph/cayley / newTestIterator

Function newTestIterator

graph/iterator/iterator_test.go:19–25  ·  view source on GitHub ↗
(next bool, err error)

Source from the content-addressed store, hash-verified

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

Callers 8

TestAndIteratorErrFunction · 0.85
TestNotIteratorErrFunction · 0.85
TestOrIteratorErrFunction · 0.85
TestHasAIteratorErrFunction · 0.85

Calls 1

NewFixedFunction · 0.85

Tested by

no test coverage detected