MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / _check

Function _check

applications/mapcoder/mock_tests/test_tester_node.py:14–18  ·  view source on GitHub ↗
(name: str, ok: bool, detail: str = "")

Source from the content-addressed store, hash-verified

12
13
14def _check(name: str, ok: bool, detail: str = "") -> None:
15 mark = "OK " if ok else "FAIL"
16 print(f"[{mark}] {name}{(': ' + detail) if detail else ''}")
17 if not ok:
18 raise SystemExit(1)
19
20
21def test_extract_code_with_python_fence() -> None:

Callers 8

test_run_passedFunction · 0.85
test_run_runtime_errorFunction · 0.85
test_run_timeoutFunction · 0.85
test_run_no_codeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected