MCPcopy Create free account
hub / github.com/ParzivalHack/PySpector / test_function

Method test_function

tests/unit/ast_cache_test.py:46–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

44 return [_make_chunk_id(n, seen) for n in tree.body]
45
46 def test_function(self):
47 self.assertEqual(self._ids("def foo(): pass"), ["FunctionDef:foo"])
48
49 def test_async_function(self):
50 self.assertEqual(self._ids("async def bar(): pass"), ["AsyncFunctionDef:bar"])

Callers

nothing calls this directly

Calls 1

_idsMethod · 0.95

Tested by

no test coverage detected