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

Function match_test

Lib/test/libregrtest/filter.py:11–17  ·  view source on GitHub ↗
(test)

Source from the content-addressed store, hash-verified

9
10
11def match_test(test):
12 # Function used by support.run_unittest() and regrtest --list-cases
13 result = False
14 for matcher, result in reversed(_test_matchers):
15 if matcher(test.id()):
16 return result
17 return not result
18
19
20def _is_full_match_test(pattern):

Callers 2

test_match_testMethod · 0.90
_list_casesFunction · 0.85

Calls 1

idMethod · 0.45

Tested by 2

test_match_testMethod · 0.72
_list_casesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…