MCPcopy Create free account
hub / github.com/Permify/permify / HasNext

Method HasNext

pkg/database/iterators.go:25–27  ·  view source on GitHub ↗

HasNext - Checks whether next tuple exists

()

Source from the content-addressed store, hash-verified

23
24// HasNext - Checks whether next tuple exists
25func (i *TupleIterator) HasNext() bool {
26 return i.index < len(i.tuples)
27}
28
29// GetNext - Get next tuple
30func (i *TupleIterator) GetNext() *base.Tuple {

Callers 15

TestGetNextReturnsNilFunction · 0.95
GetNextMethod · 0.95
TestTupleIteratorFunction · 0.45
TestSubjectIteratorFunction · 0.45
TestAttributeIteratorFunction · 0.45
TestEntityIteratorFunction · 0.45
HasNextMethod · 0.45
GetNextMethod · 0.45
HasNextMethod · 0.45
GetNextMethod · 0.45

Calls

no outgoing calls

Tested by 15

TestGetNextReturnsNilFunction · 0.76
TestTupleIteratorFunction · 0.36
TestSubjectIteratorFunction · 0.36
TestAttributeIteratorFunction · 0.36
TestEntityIteratorFunction · 0.36
TestQueryAttributes1Function · 0.36
TestQueryAttributes2Function · 0.36
TestQueryAttributes4Function · 0.36
TestQueryRelationships1Function · 0.36
TestQueryRelationships2Function · 0.36
TestQueryRelationships3Function · 0.36
TestQueryRelationships4Function · 0.36