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

Function test_matching

tests/tests/test_patterns.py:127–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125
126
127def test_matching():
128 pattern = some.str.matching(r".(b+).")
129 log_repr(pattern)
130 assert pattern == "abbbc"
131
132 pattern = some.str.matching(r"bbb")
133 log_repr(pattern)
134 assert pattern != "abbbc"
135
136 pattern = some.bytes.matching(rb".(b+).")
137 log_repr(pattern)
138 assert pattern == b"abbbc"
139
140 pattern = some.bytes.matching(rb"bbb")
141 log_repr(pattern)
142 assert pattern != b"abbbc"
143
144
145def test_starting_with():

Callers

nothing calls this directly

Calls 2

log_reprFunction · 0.85
matchingMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…