piker/tests/providers
Gud Boi a5501a787d Explain the IB broadcast test's cursor ownership
Piker 4af885d9 originally described a concurrent cache hit.
The test opens two nested contexts in a single Trio task and
stubs `maybe_open_context()` to return one retained channel.

Deats,
- Trace the cache miss to the raw channel and each hit to a separate
  `BroadcastReceiver` with its own buffer. Identify the root
  broadcast receiver as `LinkedTaskChannel._broadcaster`.
  Each `chan.subscribe()` yields a child sharing its buffer.
- Explain why the stub checks the requested factory and key.
- Explain the subscriber counts after each exit. The stub keeps
  `chan._broadcaster` while the two callers unsubscribe.
  The second quote checks that the outer cursor still works.
- Type the fixture, channel payloads and context-manager yields.
  Preserve the original assertions and their order.

(this patch was generated in some part by `Codex` using
`GPT-6` (`OpenAI`))
2026-12-02 16:49:10 -05:00
..
__init__.py Fix IB idle timer arithmetic for packet nanoseconds 2026-11-13 17:17:58 -05:00
test_history_reservations.py Use IB schedules to reserve missing SHM history 2026-11-13 17:30:24 -05:00
test_ib_broadcast.py Explain the IB broadcast test's cursor ownership 2026-12-02 16:49:10 -05:00
test_ib_schedule.py Retry incomplete IB schedule coverage 2026-11-13 17:30:25 -05:00
test_ib_wrapper_timeout.py Fix IB idle timer arithmetic for packet nanoseconds 2026-11-13 17:17:58 -05:00