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

Method test_async_function

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

Source from the content-addressed store, hash-verified

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"])
51
52 def test_class(self):
53 self.assertEqual(self._ids("class MyClass: pass"), ["ClassDef:MyClass"])

Callers

nothing calls this directly

Calls 1

_idsMethod · 0.95

Tested by

no test coverage detected