MCPcopy Index your code
hub / github.com/python/cpython / regex_search

Method regex_search

Lib/test/test_regrtest.py:630–634  ·  view source on GitHub ↗
(self, regex, output)

Source from the content-addressed store, hash-verified

628 return name
629
630 def regex_search(self, regex, output):
631 match = re.search(regex, output, re.MULTILINE)
632 if not match:
633 self.fail("%r not found in %r" % (regex, output))
634 return match
635
636 def check_line(self, output, pattern, full=False, regex=True):
637 if not regex:

Callers 2

parse_random_seedMethod · 0.95
test_randomMethod · 0.80

Calls 2

failMethod · 0.95
searchMethod · 0.45

Tested by

no test coverage detected