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

Method setUp

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

parse_codeFunction · 0.90

Tested by

no test coverage detected