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

Method __contains__

tests/timeline.py:77–79  ·  view source on GitHub ↗
(self, expectation)

Source from the content-addressed store, hash-verified

75 return list(iter(self))
76
77 def __contains__(self, expectation):
78 self.expect_frozen()
79 return any(expectation.test(self.beginning, self.last))
80
81 def all_occurrences_of(self, expectation):
82 return tuple(occ for occ in self if occ == expectation)

Callers

nothing calls this directly

Calls 2

expect_frozenMethod · 0.95
testMethod · 0.45

Tested by

no test coverage detected