FakeCommandSender

Shared recording CommandSender fake for tests that do not need transport behavior.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
data class AdminRequest(val destNum: Int, val requestId: Int, val wantResponse: Boolean, val message: AdminMessage, val expectedConnectionVersion: Long? = null)
Link copied to clipboard
data class TelemetryRequest(val requestId: Int, val destNum: Int, val typeValue: Int, val expectedConnectionVersion: Long? = null)

Properties

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

Functions

Link copied to clipboard
open override fun generatePacketId(): Int
Link copied to clipboard
open override fun getCachedChannelSet(): ChannelSet
Link copied to clipboard
open override fun getCachedLocalConfig(): LocalConfig
Link copied to clipboard
open override fun getCurrentPacketId(): Long
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: Position)
Link copied to clipboard
open suspend override fun requestTelemetry(requestId: Int, destNum: Int, typeValue: Int)
Link copied to clipboard
open suspend override fun requestTelemetryForConnection(requestId: Int, destNum: Int, typeValue: Int, expectedConnectionVersion: Long)
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 fun reset()

Resets all registered state flows and custom actions to their initial state.

Link copied to clipboard
open suspend override fun sendAdmin(destNum: Int, requestId: Int, wantResponse: Boolean, initFn: () -> AdminMessage)
Link copied to clipboard
open suspend fun sendAdminAwait(destNum: Int, requestId: Int, wantResponse: Boolean, initFn: () -> AdminMessage): Boolean
Link copied to clipboard
open suspend override fun sendAdminAwaitResult(destNum: Int, requestId: Int, wantResponse: Boolean, initFn: () -> AdminMessage): AwaitedSendResult
Link copied to clipboard
open suspend override fun sendAdminForConnection(destNum: Int, expectedConnectionVersion: Long, requestId: Int, wantResponse: Boolean, initFn: () -> AdminMessage)
Link copied to clipboard
open override fun sendAdminImmediate(destNum: Int, initFn: () -> AdminMessage)
Link copied to clipboard
open suspend override fun sendData(p: DataPacket)
Link copied to clipboard
open override fun sendLockdownPassphrase(passphrase: String, boots: Int, hours: Int, maxSessionSeconds: Int, disable: Boolean)
Link copied to clipboard
open override fun sendLockNow()
Link copied to clipboard
open suspend override fun sendPosition(pos: Position, destNum: Int?, wantResponse: Boolean)
Link copied to clipboard
open suspend override fun setFixedPosition(destNum: Int, pos: Position)