UnitTesting

interface UnitTesting : UnitTestingTrait.Attributes, MatterTrait, Updatable, UnitTestingCommands


API for the UnitTesting trait. A cluster used for testing purposes.

Summary

Nested types

Descriptor enum for this trait's attributes.

Descriptor enum for this trait's commands.

Public functions

Boolean
Boolean

Public properties

open TraitFactory<UnitTesting>

Inherited functions

From com.google.home.TraitStateInvalidation
suspend Unit
From com.google.home.matter.standard.UnitTestingCommands
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

From com.google.home.Updatable
suspend UnitTesting
update(optimisticReturn: (UnitTesting) -> Unit, init: UnitTestingTrait.MutableAttributes.() -> Unit)

Creates a mutable copy of an object and calls the given function to mutate it, then saves it and returns a new immutable copy with the updated state.

Inherited properties

From com.google.home.Trait
From com.google.home.matter.standard.UnitTestingTrait.Attributes
List<UInt>

A list of client-generated commands which are supported by this cluster server instance.

List<UInt>

A list of the attribute IDs of the attributes supported by the cluster instance.

UnitTestingTrait.Bitmap16MaskMap?

bitmap16 attribute.

UnitTestingTrait.Bitmap32MaskMap?

bitmap32 attribute.

UnitTestingTrait.Bitmap64MaskMap?

bitmap64 attribute.

UnitTestingTrait.Bitmap8MaskMap?

bitmap8 attribute.

Boolean?

boolean attribute.

String?

charString attribute.

Boolean?

clusterErrorBoolean attribute.

UShort

The revision of the server cluster specification supported by the cluster instance.

UShort?

enum16 attribute.

UByte?

enum8 attribute.

UnitTestingTrait.SimpleEnum?

enumAttr attribute.

UInt?

epochS attribute.

ULong?

epochUs attribute.

UInt

Whether the server supports zero or more optional cluster features.

Double?

floatDouble attribute.

Float?

floatSingle attribute.

Boolean?

generalErrorBoolean attribute.

List<UInt>

A list of server-generated commands (server to client) which are supported by this cluster server instance.

Short?

int16s attribute.

UShort?

int16u attribute.

Int?

int24s attribute.

UInt?

int24u attribute.

Int?

int32s attribute.

UInt?

int32u attribute.

Long?

int40s attribute.

ULong?

int40u attribute.

Long?

int48s attribute.

ULong?

int48u attribute.

Long?

int56s attribute.

ULong?

int56u attribute.

Long?

int64s attribute.

ULong?

int64u attribute.

Byte?

int8s attribute.

UByte?

int8u attribute.

List<UnitTestingTrait.TestFabricScoped>?

listFabricScoped attribute.

List<UByte>?

listInt8u attribute.

List<ByteArray>?

listLongOctetString attribute.

List<UnitTestingTrait.NullablesAndOptionalsStruct>?

listNullablesAndOptionalsStruct attribute.

List<ByteArray>?

listOctetString attribute.

List<UnitTestingTrait.TestListStructOctet>?

listStructOctetString attribute.

String?

longCharString attribute.

ByteArray?

longOctetString attribute.

UByte?
UnitTestingTrait.Bitmap16MaskMap?

nullableBitmap16 attribute.

UnitTestingTrait.Bitmap32MaskMap?

nullableBitmap32 attribute.

UnitTestingTrait.Bitmap64MaskMap?

nullableBitmap64 attribute.

UnitTestingTrait.Bitmap8MaskMap?

nullableBitmap8 attribute.

Boolean?

nullableBoolean attribute.

String?

nullableCharString attribute.

UShort?

nullableEnum16 attribute.

UByte?

nullableEnum8 attribute.

UnitTestingTrait.SimpleEnum?

nullableEnumAttr attribute.

Double?

nullableFloatDouble attribute.

Float?

nullableFloatSingle attribute.

Short?

nullableInt16s attribute.

UShort?

nullableInt16u attribute.

Int?

nullableInt24s attribute.

UInt?

nullableInt24u attribute.

Int?

nullableInt32s attribute.

UInt?

nullableInt32u attribute.

Long?

nullableInt40s attribute.

ULong?

nullableInt40u attribute.

Long?

nullableInt48s attribute.

ULong?

nullableInt48u attribute.

Long?

nullableInt56s attribute.

ULong?

nullableInt56u attribute.

Long?

nullableInt64s attribute.

ULong?

nullableInt64u attribute.

Byte?

nullableInt8s attribute.

UByte?

nullableInt8u attribute.

ByteArray?

nullableOctetString attribute.

Short?

nullableRangeRestrictedInt16s attribute.

UShort?

nullableRangeRestrictedInt16u attribute.

Byte?

nullableRangeRestrictedInt8s attribute.

UByte?

nullableRangeRestrictedInt8u attribute.

UnitTestingTrait.SimpleStruct?

nullableStruct attribute.

ByteArray?

octetString attribute.

Short?

rangeRestrictedInt16s attribute.

UShort?

rangeRestrictedInt16u attribute.

Byte?

rangeRestrictedInt8s attribute.

UByte?

rangeRestrictedInt8u attribute.

UnitTestingTrait.SimpleStruct?

structAttr attribute.

Boolean?

timedWriteBoolean attribute.

Boolean?

unsupported attribute.

UShort?

vendorId attribute.

UByte?

writeOnlyInt8u attribute.

Public functions

supports

fun supports(attribute: UnitTesting.Attribute): Boolean

supports

fun supports(command: UnitTesting.Command): Boolean

Public properties

factory

open val factoryTraitFactory<UnitTesting>