MCPcopy Index your code
hub / github.com/Workiva/go-datastructures / Empty

Method Empty

queue/queue.go:311–316  ·  view source on GitHub ↗

Empty returns a bool indicating if this bool is empty.

()

Source from the content-addressed store, hash-verified

309
310// Empty returns a bool indicating if this bool is empty.
311func (q *Queue) Empty() bool {
312 q.lock.Lock()
313 defer q.lock.Unlock()
314
315 return len(q.items) == 0
316}
317
318// Len returns the number of items in this queue.
319func (q *Queue) Len() int64 {

Callers 9

TestOrderedDeleteFunction · 0.45
TestPutFunction · 0.45
TestEmptyFunction · 0.45
TestDisposeFunction · 0.45
TestWaitersFunction · 0.45
verifyMethod · 0.45
TestDeleteAllFromRootFunction · 0.45
TestGetSetCompressedBitsFunction · 0.45
TestGetSetBitsFunction · 0.45

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by 9

TestOrderedDeleteFunction · 0.36
TestPutFunction · 0.36
TestEmptyFunction · 0.36
TestDisposeFunction · 0.36
TestWaitersFunction · 0.36
verifyMethod · 0.36
TestDeleteAllFromRootFunction · 0.36
TestGetSetCompressedBitsFunction · 0.36
TestGetSetBitsFunction · 0.36