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

Function check_lib_completion

scripts/generate_checklist.py:167–179  ·  view source on GitHub ↗
(rustpython_path, cpython_path)

Source from the content-addressed store, hash-verified

165
166
167def check_lib_completion(rustpython_path, cpython_path):
168 test_name = "test_" + rustpython_path.name
169 rustpython_test_path = rustpython_lib / "test" / test_name
170 cpython_test_path = cpython_lib / "test" / test_name
171 if cpython_test_path.exists() and not check_test_completion(
172 rustpython_test_path, cpython_test_path
173 ):
174 return False
175 if rustpython_path.exists() and rustpython_path.is_file():
176 if check_diff(rustpython_path, cpython_path) > 0:
177 return False
178 return True
179 return False
180
181
182def handle_notes(display_path) -> list[str]:

Callers 1

Calls 4

check_test_completionFunction · 0.85
check_diffFunction · 0.85
existsMethod · 0.45
is_fileMethod · 0.45

Tested by

no test coverage detected