FakeRadioController
A test double for RadioController that provides a no-op implementation and tracks calls for assertions in tests.
Types
One local or admin channel write. Local writes have no destination.
One local or admin configuration write. Local writes have no destination.
One module configuration write. Local writes have no destination.
One owner write. Local writes have no destination.
Properties
High-level admin operation order, including edit transaction boundaries.
Module configuration payloads in call order. Prefer moduleConfigWrites when destination identity matters.
Test hook that can suspend while a conditional local-configuration restore owns device selection.
Every local or admin channel write, preserving destination and call order together.
Every local or admin configuration write, preserving destination and call order together.
Destination node for every edit transaction, in order. Local edits use the fake's sentinel value of zero.
Destination node numbers of factoryReset calls, for tests asserting a reset was (or was not) sent.
When set, a channel write throws after this many total local/admin channelWrites — simulates mid-write failure.
When true, an edit transaction fails before the begin boundary is recorded.
Every setFixedPosition call, in order.
Local channel payloads in call order. Prefer channelWrites when destination identity matters.
Local configuration payloads in call order. Prefer configWrites when destination identity matters.
Local module configuration payloads in call order. Prefer moduleConfigWrites when destination matters.
Destination node for every module configuration write, in order. Local writes have no destination.
Every module configuration write, preserving destination and call order together.
Test hook invoked after an edit transaction commits.
Deterministic test hook invoked inside every requestRebootOta call with the request parameters.
Deterministic suspension/fault hook invoked before a packet is recorded as sent.
Test hook invoked before a fixed-position write is recorded.
Test hook invoked after a standalone general-config write.
Test hook invoked after a standalone module-config write.
Every local or admin owner write, preserving destination and call order together.
Number of upcoming local-channel writes to reject through the production queue-admission failure contract.
Number of upcoming local-config writes to reject through the production queue-admission failure contract.
Failure thrown by requestNeighborInfo, when set.
Device identity currently owned by the conditional restore seam.
Every config and channel write, in their shared call order.
When true, setLocalConfig throws — simulates the radio link dropping mid config write.