MCPcopy Create free account
hub / github.com/boostorg/build / __match_count_is

Function __match_count_is

v2/test/generators_test.py:334–341  ·  view source on GitHub ↗
(lines, pattern, expected)

Source from the content-addressed store, hash-verified

332
333
334def __match_count_is(lines, pattern, expected):
335 count = 0
336 for x in lines:
337 if re.search(pattern, x):
338 count += 1
339 if count > expected:
340 return False
341 return count == expected
342
343
344def __write_appender(t, name):

Callers 1

test_basicFunction · 0.85

Calls 1

searchMethod · 0.80

Tested by

no test coverage detected