(self, source: str)
| 39 | |
| 40 | class TestChunkIds(unittest.TestCase): |
| 41 | def _ids(self, source: str) -> list: |
| 42 | tree = ast.parse(source) |
| 43 | seen: dict = {} |
| 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"]) |
no test coverage detected