MCPcopy Index your code
hub / github.com/python/mypy / get_separate

Method get_separate

mypyc/test/test_run.py:454–462  ·  view source on GitHub ↗
(self, program_text: str, incremental_step: int)

Source from the content-addressed store, hash-verified

452 assert proc.returncode == 0
453
454 def get_separate(self, program_text: str, incremental_step: int) -> Any:
455 template = r"# separate{}: (\[.*\])$"
456 m = re.search(template.format(incremental_step), program_text, flags=re.MULTILINE)
457 if not m:
458 m = re.search(template.format(""), program_text, flags=re.MULTILINE)
459 if m:
460 return ast.literal_eval(m.group(1))
461 else:
462 return True
463
464
465class TestRunMultiFile(TestRun):

Callers 1

run_case_stepMethod · 0.95

Calls 2

groupMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected