MCPcopy Create free account
hub / github.com/microsoft/debugpy / and_following

Method and_following

tests/timeline.py:898–913  ·  view source on GitHub ↗
(self, up_to=None, inclusive=False)

Source from the content-addressed store, hash-verified

896 return it
897
898 def and_following(self, up_to=None, inclusive=False):
899 assert self.timeline is not None
900 assert up_to is None or isinstance(up_to, Expectation)
901 if up_to is None:
902 self.timeline.expect_frozen()
903
904 if isinstance(up_to, Occurrence) and up_to < self:
905 return
906
907 occ = self
908 while occ != up_to:
909 yield occ
910 occ = occ.next
911
912 if inclusive:
913 yield occ
914
915 def precedes(self, occurrence):
916 assert isinstance(occurrence, Occurrence)

Callers 6

followingMethod · 0.95
__iter__Method · 0.80
_expect_realizedMethod · 0.80
__new__Method · 0.80
testMethod · 0.80
testMethod · 0.80

Calls 1

expect_frozenMethod · 0.80

Tested by

no test coverage detected