MCPcopy Index your code
hub / github.com/bpython/bpython / test_func_name

Method test_func_name

bpython/test/test_repl.py:179–188  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

177 self.repl.cursor_offset = len(line)
178
179 def test_func_name(self):
180 for line, expected_name in [
181 ("spam(", "spam"),
182 # map pydoc has no signature in pypy
183 ("spam(any([]", "any") if pypy else ("spam(map([]", "map"),
184 ("spam((), ", "spam"),
185 ]:
186 self.set_input_line(line)
187 self.assertTrue(self.repl.get_args())
188 self.assertEqual(self.repl.current_func.__name__, expected_name)
189
190 def test_func_name_method_issue_479(self):
191 for line, expected_name in [

Callers

nothing calls this directly

Calls 2

set_input_lineMethod · 0.95
get_argsMethod · 0.80

Tested by

no test coverage detected