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

Method test_function_info

Lib/test/test_symtable.py:258–264  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

256
257 @unittest.expectedFailure # TODO: RUSTPYTHON
258 def test_function_info(self):
259 func = self.spam
260 self.assertEqual(sorted(func.get_parameters()), ["a", "b", "kw", "var"])
261 expected = ['a', 'b', 'internal', 'kw', 'other_internal', 'some_var', 'var', 'x']
262 self.assertEqual(sorted(func.get_locals()), expected)
263 self.assertEqual(sorted(func.get_globals()), ["bar", "glob", "some_assigned_global_var"])
264 self.assertEqual(self.internal.get_frees(), ("x",))
265
266 @unittest.expectedFailure # TODO: RUSTPYTHON
267 def test_globals(self):

Callers

nothing calls this directly

Calls 6

sortedFunction · 0.85
get_parametersMethod · 0.80
get_localsMethod · 0.80
get_globalsMethod · 0.80
get_freesMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected