MCPcopy Index your code
hub / github.com/RustPython/RustPython / check_line

Method check_line

Lib/test/test_regrtest.py:598–604  ·  view source on GitHub ↗
(self, output, pattern, full=False, regex=True)

Source from the content-addressed store, hash-verified

596 return match
597
598 def check_line(self, output, pattern, full=False, regex=True):
599 if not regex:
600 pattern = re.escape(pattern)
601 if full:
602 pattern += '\n'
603 regex = re.compile(r'^' + pattern, re.MULTILINE)
604 self.assertRegex(output, regex)
605
606 def parse_executed_tests(self, output):
607 regex = (fr'^{LOG_PREFIX}\[ *[0-9]+(?:/ *[0-9]+)*\] '

Callers 9

check_executed_testsMethod · 0.95
test_randomMethod · 0.80
test_slowestMethod · 0.80
test_coverageMethod · 0.80
test_waitMethod · 0.80
check_leakMethod · 0.80

Calls 3

escapeMethod · 0.80
assertRegexMethod · 0.80
compileMethod · 0.45

Tested by

no test coverage detected