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

Method test_mixed

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

Source from the content-addressed store, hash-verified

60 self.assertEqual(ids, ["FunctionDef:foo", "FunctionDef:foo:1"])
61
62 def test_mixed(self):
63 ids = self._ids("x = 1\ndef foo(): pass\nclass Bar: pass")
64 self.assertEqual(ids, ["stmt:1", "FunctionDef:foo", "ClassDef:Bar"])
65
66
67# ── TestBuildAstJson ─────────────────────────────────────────────────────────

Callers

nothing calls this directly

Calls 1

_idsMethod · 0.95

Tested by

no test coverage detected