MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / execute_and_count

Method execute_and_count

tests/unit/test_event_bus.py:157–161  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

155 processed_count = 0
156
157 async def execute_and_count(event): # noqa: ARG001
158 nonlocal processed_count
159 processed_count += 1
160 if processed_count == 3:
161 processed_all.set()
162
163 mock_pipeline_scheduler.execute.side_effect = execute_and_count
164

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected