MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / test_not_eligible_when_running

Function test_not_eligible_when_running

tests/test_eviction.py:128–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126
127
128def test_not_eligible_when_running() -> None:
129 reg = RuntimeTaskRegistry()
130 agent_id = generate_task_id("local_agent")
131 state = register_async_agent(
132 agent_id=agent_id, description="x", prompt="x",
133 agent_type="general-purpose", registry=reg,
134 )
135 assert is_eligible_for_eviction(state, now=time.time() + 1e9) is False
136
137
138def test_not_eligible_when_retained() -> None:

Callers

nothing calls this directly

Calls 4

RuntimeTaskRegistryClass · 0.90
generate_task_idFunction · 0.90
register_async_agentFunction · 0.90
is_eligible_for_evictionFunction · 0.90

Tested by

no test coverage detected