MCPcopy Create free account
hub / github.com/algorithmicsuperintelligence/openevolve / benchmark

Method benchmark

tests/test_api.py:294–296  ·  view source on GitHub ↗
(instance)

Source from the content-addressed store, hash-verified

292 return sum(data)
293
294 def benchmark(instance):
295 result = instance.process([1, 2, 3])
296 return {"score": 1.0 if result == 6 else 0.0}
297
298 # Mock the controller
299 with unittest.mock.patch('openevolve.api._run_evolution_async') as mock_async:

Callers

nothing calls this directly

Calls 1

processMethod · 0.80

Tested by

no test coverage detected