MCPcopy Index your code
hub / github.com/evalplus/evalplus / trusted_check_exec

Function trusted_check_exec

evalplus/gen/util/__init__.py:33–40  ·  view source on GitHub ↗

Check trusted_exec success.

(code, inputs, entry_point)

Source from the content-addressed store, hash-verified

31
32
33def trusted_check_exec(code, inputs, entry_point):
34 """Check trusted_exec success."""
35 try:
36 with time_limit(seconds=1.0):
37 trusted_exec(code, inputs, entry_point)
38 except Exception:
39 return False
40 return True

Callers 3

generateMethod · 0.90
generateMethod · 0.90
generateMethod · 0.90

Calls 2

time_limitFunction · 0.90
trusted_execFunction · 0.85

Tested by

no test coverage detected