MCPcopy Index your code
hub / github.com/RustPython/RustPython / perform_test

Function perform_test

extra_tests/test_snippets.py:34–41  ·  view source on GitHub ↗
(filename, method, test_type)

Source from the content-addressed store, hash-verified

32
33
34def perform_test(filename, method, test_type):
35 logger.info("Running %s via %s", filename, method)
36 if method == "cpython":
37 run_via_cpython(filename)
38 elif method == "rustpython":
39 run_via_rustpython(filename, test_type)
40 else:
41 raise NotImplementedError(method)
42
43
44def run_via_cpython(filename):

Callers 1

test_functionFunction · 0.85

Calls 3

run_via_cpythonFunction · 0.85
run_via_rustpythonFunction · 0.85
infoMethod · 0.45

Tested by

no test coverage detected