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

Method and_preceding

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

Source from the content-addressed store, hash-verified

876 return it
877
878 def and_preceding(self, up_to=None, inclusive=False):
879 assert self.timeline is not None
880 assert up_to is None or isinstance(up_to, Expectation)
881
882 if isinstance(up_to, Occurrence) and self < up_to:
883 return
884
885 occ = self
886 while occ != up_to:
887 yield occ
888 occ = occ.previous
889
890 if inclusive:
891 yield occ
892
893 def following(self):
894 it = self.and_following()

Callers 2

precedingMethod · 0.95
__reversed__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected