(instance)
| 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: |