Package-level declarations

Types

Link copied to clipboard

An AttributeIdentity for mock wrappers; each instance is distinct, mirroring the per-attribute identity of the platform implementations.

Link copied to clipboard
class MockBluetoothServer(initialStatus: ServerStatus = ServerStatus.AVAILABLE, setupMocks: Boolean = true) : BluetoothServer

A mock implementation of BluetoothServer. The status, isAdvertising and services flows are backed by MutableStateFlows the test can update directly, while the methods are mocked using the Kaluga mocking library so calls can be stubbed and verified.

Link copied to clipboard

A mock implementation of BaseBluetoothServerBuilder that creates MockBluetoothServers.

Link copied to clipboard

A mock implementation of ConnectedDevice for use in tests. The platform handle (device/cbCentral) is not mockable and throws if accessed; only identifier is provided.

A mock implementation of ConnectedDevice for use in tests. The platform handle (device/cbCentral) is not mockable and throws if accessed; only identifier is provided.

A mock implementation of ConnectedDevice for use in tests. The platform handle (device/cbCentral) is not mockable and throws if accessed; only identifier is provided.

Link copied to clipboard

A LocalServiceWrapper for use in tests. Holds only the modeled attributes; the platform-level actions (adding to a server, notifying) are not supported and throw if invoked.

A LocalServiceWrapper for use in tests. Holds only the modeled attributes; the platform-level actions (adding to a server, notifying) are not supported and throw if invoked.

A LocalServiceWrapper for use in tests. Holds only the modeled attributes; the platform-level actions (adding to a server, notifying) are not supported and throw if invoked.

Link copied to clipboard

A LocalServiceWrapperBuilder that produces mock wrappers, allowing attribute graphs to be built in tests on any platform without a live Bluetooth stack.