MCPcopy Create free account
hub / github.com/catid/supercharger / check_syntax

Method check_syntax

codegen/test_missing_colons.py:6–11  ·  view source on GitHub ↗
(self, code_string)

Source from the content-addressed store, hash-verified

4
5class TestAddMissingColons(unittest.TestCase):
6 def check_syntax(self, code_string):
7 try:
8 ast.parse(code_string)
9 return True
10 except SyntaxError:
11 return False
12
13 def run_test_cases(self, test_cases, test_type, syntax_check=True):
14 for i, (input_str, expected_output) in enumerate(test_cases):

Callers 1

run_test_casesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected