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

Method test

tests/timeline.py:660–676  ·  view source on GitHub ↗
(self, first, last)

Source from the content-addressed store, hash-verified

658 OPERATOR = "&"
659
660 def test(self, first, last):
661 assert isinstance(first, Occurrence)
662 assert isinstance(last, Occurrence)
663
664 if len(self.expectations) <= 1:
665 for exp in self.expectations:
666 for reasons in exp.test(first, last):
667 yield reasons
668 return
669
670 lhs = self.expectations[0]
671 rhs = AndExpectation(*self.expectations[1:])
672 for lhs_reasons in lhs.test(first, last):
673 for rhs_reasons in rhs.test(first, last):
674 reasons = lhs_reasons.copy()
675 reasons.update(rhs_reasons)
676 yield reasons
677
678 @property
679 def has_lower_bound(self):

Callers

nothing calls this directly

Calls 4

AndExpectationClass · 0.85
testMethod · 0.45
copyMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected