MCPcopy Index your code
hub / github.com/python/cpython / test_empty

Method test_empty

Lib/test/test_pyrepl/test_eventqueue.py:35–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 self.assertEqual(eq.get(), event)
34
35 def test_empty(self):
36 eq = self.make_eventqueue()
37 self.assertTrue(eq.empty())
38 eq.insert(Event("key", "a", b"a"))
39 self.assertFalse(eq.empty())
40
41 def test_flush_buf(self):
42 eq = self.make_eventqueue()

Callers

nothing calls this directly

Calls 6

make_eventqueueMethod · 0.95
EventClass · 0.90
assertTrueMethod · 0.80
assertFalseMethod · 0.80
emptyMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected