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

Method report

Lib/idlelib/idle_test/test_grep.py:123–129  ·  view source on GitHub ↗
(self, pat)

Source from the content-addressed store, hash-verified

121 # from incomplete replacement, so 'later'.
122
123 def report(self, pat):
124 _grep.engine._pat = pat
125 with captured_stdout() as s:
126 _grep.grep_it(re.compile(pat), __file__)
127 lines = s.getvalue().split('\n')
128 lines.pop() # remove bogus '' after last \n
129 return lines
130
131 def test_unfound(self):
132 pat = 'xyz*'*7

Callers 3

test_unfoundMethod · 0.95
test_foundMethod · 0.95
_do_testMethod · 0.45

Calls 6

captured_stdoutFunction · 0.90
grep_itMethod · 0.80
compileMethod · 0.45
splitMethod · 0.45
getvalueMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected