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

Function test_ending_with

tests/tests/test_patterns.py:161–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159
160
161def test_ending_with():
162 pattern = some.str.ending_with("aa")
163 log_repr(pattern)
164 assert pattern == "bbbbaa"
165 assert pattern == "bb\nbb\naa"
166 assert pattern != "aabbbb"
167 assert pattern != "bbaabb"
168 assert pattern != "ababab"
169
170 pattern = some.bytes.ending_with(b"aa")
171 log_repr(pattern)
172 assert pattern == b"bbbbaa"
173 assert pattern == b"bb\nbb\naa"
174 assert pattern != b"aabbbb"
175 assert pattern != b"bbaabb"
176 assert pattern != b"ababab"
177
178
179def test_containing():

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…