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

Function test_collector_accepts_valid

tests/workflow/test_structured.py:39–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38
39def test_collector_accepts_valid():
40 c = StructuredOutputCollector(schema=_SCHEMA)
41 accepted, err = c.offer({"name": "x", "age": 3})
42 assert accepted is True
43 assert err is None
44 assert c.succeeded is True
45 assert c.value == {"name": "x", "age": 3}
46 assert c.exhausted is False
47
48
49def test_collector_retries_then_exhausts():

Callers

nothing calls this directly

Calls 2

offerMethod · 0.95

Tested by

no test coverage detected