(code, entry_point, test_code)
| 88 | |
| 89 | |
| 90 | def instrument_inputs(code, entry_point, test_code) -> str: |
| 91 | globals()["_inputs"] = [] |
| 92 | fn_text = f"""{code.split(f"def {entry_point}")[0]} |
| 93 | |
| 94 | def {entry_point}(*args): |
| 95 | _inputs.append(args) |
| 96 | return {_ret(entry_point)} |
| 97 | """ |
| 98 | exec(fn_text + "\n" + test_code.replace("assert ", ""), globals()) |
| 99 | print(fn_text + "\n" + test_code.replace("assert ", "")) |
| 100 | print(globals()["_inputs"]) |
| 101 | return globals()["_inputs"] |
| 102 | |
| 103 | |
| 104 | def get_atol(task_id: int) -> float: |
no test coverage detected
searching dependent graphs…