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

Method test_flush_buf

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

Source from the content-addressed store, hash-verified

39 self.assertFalse(eq.empty())
40
41 def test_flush_buf(self):
42 eq = self.make_eventqueue()
43 eq.buf.extend(b"test")
44 self.assertEqual(eq.flush_buf(), b"test")
45 self.assertEqual(eq.buf, bytearray())
46
47 def test_insert(self):
48 eq = self.make_eventqueue()

Callers

nothing calls this directly

Calls 4

make_eventqueueMethod · 0.95
flush_bufMethod · 0.80
extendMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected