UnitTestingCommands

interface UnitTestingCommands

Known direct subclasses
UnitTesting

API for the UnitTesting trait.


Summary

Public functions

suspend UnitTestingTrait.SimpleStructEchoRequestCommand.Response

Unit test command.

suspend Unit

Simple command without any parameters and without a specific response.

suspend UnitTestingTrait.TestAddArgumentsCommand.Response
testAddArguments(arg1: UByte, arg2: UByte)

Simple command that adds the two arguments passed to it.

suspend UnitTestingTrait.TestBatchHelperRequestCommand.Response
testBatchHelperRequest(
    sleepBeforeResponseTimeMs: UShort,
    sizeOfResponseBuffer: UShort,
    fillCharacter: UByte
)
suspend UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response
testComplexNullableOptionalRequest(
    nullableInt: UShort?,
    nullableString: String?,
    nullableStruct: UnitTestingTrait.SimpleStruct?,
    nullableList: List<UnitTestingTrait.SimpleEnum>?,
    optionalArgs: UnitTestingTrait.TestComplexNullableOptionalRequestCommand.OptionalArgs.() -> Unit
)

Unit test command.

suspend UnitTestingTrait.TestDifferentVendorMeiRequestCommand.Response
suspend UnitTestingTrait.TestEmitTestEventRequestCommand.Response
testEmitTestEventRequest(
    arg1: UByte,
    arg2: UnitTestingTrait.SimpleEnum,
    arg3: Boolean
)

Unit test command.

suspend UnitTestingTrait.TestEmitTestFabricScopedEventRequestCommand.Response

Unit test command.

suspend UnitTestingTrait.TestEnumsRequestCommand.Response

Unit test command.

suspend UnitTestingTrait.TestListInt8UArgumentRequestCommand.Response

Unit test command.

suspend UnitTestingTrait.TestListInt8UReverseRequestCommand.Response

Unit test command.

suspend UnitTestingTrait.TestListNestedStructListArgumentRequestCommand.Response

Unit test command.

suspend UnitTestingTrait.TestListStructArgumentRequestCommand.Response

Unit test command.

suspend UnitTestingTrait.TestNestedStructArgumentRequestCommand.Response

Unit test command.

suspend UnitTestingTrait.TestNestedStructListArgumentRequestCommand.Response

Unit test command.

suspend Unit

Simple command without any parameters and without a specific response not handled by the server.

suspend UnitTestingTrait.TestNullableOptionalRequestCommand.Response

Unit test command.

suspend UnitTestingTrait.TestSecondBatchHelperRequestCommand.Response
testSecondBatchHelperRequest(
    sleepBeforeResponseTimeMs: UShort,
    sizeOfResponseBuffer: UShort,
    fillCharacter: UByte
)
suspend UnitTestingTrait.TestSimpleArgumentRequestCommand.Response

Command that takes a boolean argument.

suspend Unit

Unit test command.

suspend UnitTestingTrait.TestSpecificCommand.Response

Simple command without any parameters and with a specific response.

suspend UnitTestingTrait.TestStructArgumentRequestCommand.Response

Unit test command.

suspend UnitTestingTrait.TestStructArrayArgumentRequestCommand.Response

Command that takes various arguments that are arrays, including an array of structs which have a list member.

suspend Unit

Simple command that should not be added to the server.

suspend Unit

TimedInvokeRequest command

Public functions

simpleStructEchoRequest

suspend fun simpleStructEchoRequest(arg1: UnitTestingTrait.SimpleStruct): UnitTestingTrait.SimpleStructEchoRequestCommand.Response

Unit test command.

Parameters
arg1: UnitTestingTrait.SimpleStruct

SimpleStruct argument.

test

suspend fun test(): Unit

Simple command without any parameters and without a specific response.

testAddArguments

suspend fun testAddArguments(arg1: UByte, arg2: UByte): UnitTestingTrait.TestAddArgumentsCommand.Response

Simple command that adds the two arguments passed to it.

Parameters
arg1: UByte

Unsigned 8-bit integer argument. The int8u attribute could be used for this.

arg2: UByte

Unsigned 8-bit integer argument.

testBatchHelperRequest

suspend fun testBatchHelperRequest(
    sleepBeforeResponseTimeMs: UShort,
    sizeOfResponseBuffer: UShort,
    fillCharacter: UByte
): UnitTestingTrait.TestBatchHelperRequestCommand.Response

testComplexNullableOptionalRequest

suspend fun testComplexNullableOptionalRequest(
    nullableInt: UShort?,
    nullableString: String?,
    nullableStruct: UnitTestingTrait.SimpleStruct?,
    nullableList: List<UnitTestingTrait.SimpleEnum>?,
    optionalArgs: UnitTestingTrait.TestComplexNullableOptionalRequestCommand.OptionalArgs.() -> Unit = {}
): UnitTestingTrait.TestComplexNullableOptionalRequestCommand.Response

Unit test command.

Parameters
nullableInt: UShort?

Unsigned 16-bit integer argument.

nullableString: String?

String argument.

nullableStruct: UnitTestingTrait.SimpleStruct?

SimpleStruct argument.

nullableList: List<UnitTestingTrait.SimpleEnum>?

SimpleEnum list argument.

optionalArgs: UnitTestingTrait.TestComplexNullableOptionalRequestCommand.OptionalArgs.() -> Unit = {}

Receiver for the optional arguments of this command

testEmitTestEventRequest

suspend fun testEmitTestEventRequest(
    arg1: UByte,
    arg2: UnitTestingTrait.SimpleEnum,
    arg3: Boolean
): UnitTestingTrait.TestEmitTestEventRequestCommand.Response

Unit test command.

Parameters
arg1: UByte

Unsigned 8-bit integer argument.

arg2: UnitTestingTrait.SimpleEnum

SimpleEnum argument.

arg3: Boolean

Boolean argument.

testEmitTestFabricScopedEventRequest

suspend fun testEmitTestFabricScopedEventRequest(arg1: UByte): UnitTestingTrait.TestEmitTestFabricScopedEventRequestCommand.Response

Unit test command.

Parameters
arg1: UByte

Unsigned 8-bit integer argument.

testEnumsRequest

suspend fun testEnumsRequest(arg1: UShort, arg2: UnitTestingTrait.SimpleEnum): UnitTestingTrait.TestEnumsRequestCommand.Response

Unit test command.

Parameters
arg1: UShort

Unsigned 16-bit integer argument.

arg2: UnitTestingTrait.SimpleEnum

SimpleEnum argument.

testListInt8UArgumentRequest

suspend fun testListInt8UArgumentRequest(arg1: List<UByte>): UnitTestingTrait.TestListInt8UArgumentRequestCommand.Response

Unit test command.

Parameters
arg1: List<UByte>

Unsigned 8-bit integer list argument.

testListInt8UReverseRequest

suspend fun testListInt8UReverseRequest(arg1: List<UByte>): UnitTestingTrait.TestListInt8UReverseRequestCommand.Response

Unit test command.

Parameters
arg1: List<UByte>

Unsigned 8-bit integer list argument.

testListStructArgumentRequest

suspend fun testListStructArgumentRequest(
    arg1: List<UnitTestingTrait.SimpleStruct>
): UnitTestingTrait.TestListStructArgumentRequestCommand.Response

Unit test command.

Parameters
arg1: List<UnitTestingTrait.SimpleStruct>

SimpleStruct list argument.

testNotHandled

suspend fun testNotHandled(): Unit

Simple command without any parameters and without a specific response not handled by the server.

testNullableOptionalRequest

suspend fun testNullableOptionalRequest(optionalArgs: UnitTestingTrait.TestNullableOptionalRequestCommand.OptionalArgs.() -> Unit = {}): UnitTestingTrait.TestNullableOptionalRequestCommand.Response

Unit test command.

Parameters
optionalArgs: UnitTestingTrait.TestNullableOptionalRequestCommand.OptionalArgs.() -> Unit = {}

Receiver for the optional arguments of this command

testSecondBatchHelperRequest

suspend fun testSecondBatchHelperRequest(
    sleepBeforeResponseTimeMs: UShort,
    sizeOfResponseBuffer: UShort,
    fillCharacter: UByte
): UnitTestingTrait.TestSecondBatchHelperRequestCommand.Response

testSimpleArgumentRequest

suspend fun testSimpleArgumentRequest(arg1: Boolean): UnitTestingTrait.TestSimpleArgumentRequestCommand.Response

Command that takes a boolean argument.

Parameters
arg1: Boolean

Boolean argument.

testSimpleOptionalArgumentRequest

suspend fun testSimpleOptionalArgumentRequest(optionalArgs: UnitTestingTrait.TestSimpleOptionalArgumentRequestCommand.OptionalArgs.() -> Unit = {}): Unit

Unit test command.

Parameters
optionalArgs: UnitTestingTrait.TestSimpleOptionalArgumentRequestCommand.OptionalArgs.() -> Unit = {}

Receiver for the optional arguments of this command

testSpecific

suspend fun testSpecific(): UnitTestingTrait.TestSpecificCommand.Response

Simple command without any parameters and with a specific response.

testStructArgumentRequest

suspend fun testStructArgumentRequest(arg1: UnitTestingTrait.SimpleStruct): UnitTestingTrait.TestStructArgumentRequestCommand.Response

Unit test command.

Parameters
arg1: UnitTestingTrait.SimpleStruct

SimpleStruct argument.

testStructArrayArgumentRequest

suspend fun testStructArrayArgumentRequest(
    arg1: List<UnitTestingTrait.NestedStructList>,
    arg2: List<UnitTestingTrait.SimpleStruct>,
    arg3: List<UnitTestingTrait.SimpleEnum>,
    arg4: List<Boolean>,
    arg5: UnitTestingTrait.SimpleEnum,
    arg6: Boolean
): UnitTestingTrait.TestStructArrayArgumentRequestCommand.Response

Command that takes various arguments that are arrays, including an array of structs which have a list member.

Parameters
arg1: List<UnitTestingTrait.NestedStructList>

NestedStructList list argument.

arg2: List<UnitTestingTrait.SimpleStruct>

SimpleStruct list argument.

arg3: List<UnitTestingTrait.SimpleEnum>

SimpleEnum list argument.

arg4: List<Boolean>

boolean list argument.

arg5: UnitTestingTrait.SimpleEnum

SimpleEnum argument.

arg6: Boolean

Boolean argument.

testUnknownCommand

suspend fun testUnknownCommand(): Unit

Simple command that should not be added to the server.

timedInvokeRequest

suspend fun timedInvokeRequest(): Unit

TimedInvokeRequest command