FakeRadioController
A test double for RadioController that provides a no-op implementation and tracks calls for assertions in tests.
Use this in place of mocking the entire RadioController interface when you need fine-grained control over connection state and packet tracking.
Example:
val radioController = FakeRadioController()
radioController.setConnectionState(ConnectionState.Connected)
// ... perform test ...
assertEquals(1, radioController.sentPackets.size)Content copied to clipboard
Properties
Link copied to clipboard
open override val clientNotification: ERROR CLASS: Symbol not found for StateFlow<ERROR CLASS: Symbol not found for ClientNotification?>
Link copied to clipboard
open override val connectionState: ERROR CLASS: Symbol not found for StateFlow<ERROR CLASS: Symbol not found for ConnectionState>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun requestPosition(destNum: Int, currentPosition: ERROR CLASS: Symbol not found for org.meshtastic.core.model.Position)
Link copied to clipboard
open suspend override fun requestRebootOta(requestId: Int, destNum: Int, mode: Int, hash: ByteArray?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun setFixedPosition(destNum: Int, position: ERROR CLASS: Symbol not found for org.meshtastic.core.model.Position)
Link copied to clipboard
open suspend override fun setLocalChannel(channel: ERROR CLASS: Symbol not found for org.meshtastic.proto.Channel)
Link copied to clipboard
open suspend override fun setLocalConfig(config: ERROR CLASS: Symbol not found for org.meshtastic.proto.Config)
Link copied to clipboard
open suspend override fun setModuleConfig(destNum: Int, config: ERROR CLASS: Symbol not found for org.meshtastic.proto.ModuleConfig, packetId: Int)
Link copied to clipboard
open suspend override fun setRemoteChannel(destNum: Int, channel: ERROR CLASS: Symbol not found for org.meshtastic.proto.Channel, packetId: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard