MCPcopy Create free account
hub / github.com/apache/qpid-proton / drain

Method drain

python/tests/proton_tests/engine.py:2408–2417  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2406 self.collector = Collector()
2407
2408 def drain(self):
2409 result = []
2410 while True:
2411 e = self.collector.peek()
2412 if e:
2413 result.append(e)
2414 self.collector.pop()
2415 else:
2416 break
2417 return result
2418
2419 def expect(self, *types):
2420 return self.expect_oneof(types)

Callers 8

expect_oneofMethod · 0.95
expect_untilMethod · 0.95
testFullDrainMethod · 0.45
testPartialDrainMethod · 0.45
testDrainFlowMethod · 0.45
testDrainZeroMethod · 0.45
testDrainOrderMethod · 0.45

Calls 3

peekMethod · 0.45
appendMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected