MCPcopy Index your code
hub / github.com/FSoft-AI4Code/CodeText-parser / setUp

Method setUp

tests/test_parser/test_python.py:11–17  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9
10class Test_PythonParser(unittest.TestCase):
11 def setUp(self) -> None:
12 with open('tests/test_parser/test_sample/py_test_sample.py', 'r') as file:
13 self.code_sample = file.read()
14
15 tree = parse_code(self.code_sample, 'python')
16 self.root_node = tree.root_node
17 return super().setUp()
18
19 def test_get_function_list(self):
20 root = self.root_node

Callers

nothing calls this directly

Calls 1

parse_codeFunction · 0.90

Tested by

no test coverage detected