MCPcopy Index your code
hub / github.com/apache/devlake / HasNext

Method HasNext

backend/helpers/pluginhelper/api/iterator.go:153–155  ·  view source on GitHub ↗

HasNext increments the row cursor. If we're at the end, it'll return false.

()

Source from the content-addressed store, hash-verified

151
152// HasNext increments the row cursor. If we're at the end, it'll return false.
153func (q *QueueIterator) HasNext() bool {
154 return q.queue.GetCount() > 0
155}
156
157// Fetch current item
158func (q *QueueIterator) Fetch() (interface{}, errors.Error) {

Callers 1

TestQueueIteratorFunction · 0.95

Calls 1

GetCountMethod · 0.80

Tested by 1

TestQueueIteratorFunction · 0.76