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

Method setUp

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

Source from the content-addressed store, hash-verified

8
9class Test_CppParser_with_C(unittest.TestCase):
10 def setUp(self) -> None:
11 with open('tests/test_parser/test_sample/c_test_sample.c', 'r') as file:
12 self.code_sample = file.read()
13
14 tree = parse_code(self.code_sample, 'c')
15 self.root_node = tree.root_node
16
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