()
| 37 | |
| 38 | |
| 39 | def 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 | |
| 49 | def test_collector_retries_then_exhausts(): |
nothing calls this directly
no test coverage detected