FakeRadioController

class FakeRadioController : <ERROR CLASS> ERROR CLASS: Symbol not found for RadioController(source)

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)

Constructors

Link copied to clipboard
constructor()

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
val favoritedNodes: ERROR CLASS: Unresolved name: mutableListOf
Link copied to clipboard
val sentPackets: ERROR CLASS: Unresolved name: mutableListOf
Link copied to clipboard
val sentSharedContacts: ERROR CLASS: Unresolved name: mutableListOf

Functions

Link copied to clipboard
open suspend override fun beginEditSettings(destNum: Int)
Link copied to clipboard
open override fun clearClientNotification()
Link copied to clipboard
open suspend override fun commitEditSettings(destNum: Int)
Link copied to clipboard
open suspend override fun factoryReset(destNum: Int, packetId: Int)
Link copied to clipboard
open suspend override fun favoriteNode(nodeNum: Int)
Link copied to clipboard
open suspend override fun getCannedMessages(destNum: Int, packetId: Int)
Link copied to clipboard
open suspend override fun getChannel(destNum: Int, index: Int, packetId: Int)
Link copied to clipboard
open suspend override fun getConfig(destNum: Int, configType: Int, packetId: Int)
Link copied to clipboard
open suspend override fun getDeviceConnectionStatus(destNum: Int, packetId: Int)
Link copied to clipboard
open suspend override fun getModuleConfig(destNum: Int, moduleConfigType: Int, packetId: Int)
Link copied to clipboard
open suspend override fun getOwner(destNum: Int, packetId: Int)
Link copied to clipboard
open override fun getPacketId(): Int
Link copied to clipboard
open suspend override fun getRingtone(destNum: Int, packetId: Int)
Link copied to clipboard
open suspend override fun nodedbReset(destNum: Int, packetId: Int, preserveFavorites: Boolean)
Link copied to clipboard
open suspend override fun reboot(destNum: Int, packetId: Int)
Link copied to clipboard
open suspend override fun rebootToDfu(nodeNum: Int)
Link copied to clipboard
open suspend override fun removeByNodenum(packetId: Int, nodeNum: Int)
Link copied to clipboard
open suspend override fun requestNeighborInfo(requestId: Int, destNum: Int)
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
open suspend override fun requestTelemetry(requestId: Int, destNum: Int, typeValue: Int)
Link copied to clipboard
open suspend override fun requestTraceroute(requestId: Int, destNum: Int)
Link copied to clipboard
open suspend override fun requestUserInfo(destNum: Int)
Link copied to clipboard
open suspend override fun sendMessage(packet: ERROR CLASS: Symbol not found for DataPacket)
Link copied to clipboard
open suspend override fun sendSharedContact(nodeNum: Int)
Link copied to clipboard
open suspend override fun setCannedMessages(destNum: Int, messages: String)
Link copied to clipboard
open suspend override fun setConfig(destNum: Int, config: ERROR CLASS: Symbol not found for org.meshtastic.proto.Config, packetId: Int)
Link copied to clipboard
fun setConnectionState(state: ERROR CLASS: Symbol not found for ConnectionState)
Link copied to clipboard
open override fun setDeviceAddress(address: String)
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 setOwner(destNum: Int, user: ERROR CLASS: Symbol not found for org.meshtastic.proto.User, 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
open suspend override fun setRingtone(destNum: Int, ringtone: String)
Link copied to clipboard
open suspend override fun shutdown(destNum: Int, packetId: Int)
Link copied to clipboard
open override fun startProvideLocation()
Link copied to clipboard
open override fun stopProvideLocation()