MCPcopy Index your code
hub / github.com/eapache/queue / TestQueueGet

Function TestQueueGet

queue_test.go:62–73  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

60}
61
62func TestQueueGet(t *testing.T) {
63 q := New()
64
65 for i := 0; i < 1000; i++ {
66 q.Add(i)
67 for j := 0; j < q.Length(); j++ {
68 if q.Get(j).(int) != j {
69 t.Errorf("index %d doesn't contain %d", j, j)
70 }
71 }
72 }
73}
74
75func TestQueueGetNegative(t *testing.T) {
76 q := New()

Callers

nothing calls this directly

Calls 4

NewFunction · 0.85
AddMethod · 0.80
LengthMethod · 0.80
GetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…