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

Function test_containing

tests/tests/test_patterns.py:179–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177
178
179def test_containing():
180 pattern = some.str.containing("aa")
181 log_repr(pattern)
182 assert pattern == "aabbbb"
183 assert pattern == "bbbbaa"
184 assert pattern == "bbaabb"
185 assert pattern == "bb\naa\nbb"
186 assert pattern != "ababab"
187
188 pattern = some.bytes.containing(b"aa")
189 log_repr(pattern)
190 assert pattern == b"aabbbb"
191 assert pattern == b"bbbbaa"
192 assert pattern == b"bbaabb"
193 assert pattern == b"bb\naa\nbb"
194 assert pattern != b"ababab"
195
196
197def test_list():

Callers

nothing calls this directly

Calls 1

log_reprFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…