MCPcopy
hub / github.com/gorakhargosh/watchdog / test_basic_queue

Function test_basic_queue

tests/test_skip_repeats_queue.py:7–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def test_basic_queue():
8 q = SkipRepeatsQueue()
9
10 e1 = (2, "fred")
11 e2 = (2, "george")
12 e3 = (4, "sally")
13
14 q.put(e1)
15 q.put(e2)
16 q.put(e3)
17
18 assert e1 == q.get()
19 assert e2 == q.get()
20 assert e3 == q.get()
21 assert q.empty()
22
23
24def test_allow_nonconsecutive():

Callers

nothing calls this directly

Calls 3

putMethod · 0.95
SkipRepeatsQueueClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…