Module test_support

Module test_support 

Source
Expand description

Std-only simulated radio network and dummy platform components for tests.

This module is intended for development, simulation, and examples. The simulated network types are useful outside unit tests, but the dummy crypto and RNG implementations are deliberately insecure and must not be used for real deployments.

Structs§

DummyAes
Dummy AES provider used by tests.
DummyCipher
Dummy XOR-based cipher used by tests.
DummyClock
Mutable monotonic test clock.
DummyCounterStore
No-op counter store used by tests.
DummyDelay
No-op async delay used only to satisfy the platform bundle in tests.
DummyIdentity
Minimal NodeIdentity implementation used by tests and simulations.
DummyKeyValueStore
No-op key-value store used only to satisfy the platform bundle in tests.
DummyRng
Deterministic byte-filling RNG used by tests.
DummySha
Dummy SHA/HMAC provider used by tests.
ModeledLinkProfile
Link model used by ModeledNetwork to derive receive metadata and loss.
ModeledNetwork
Shared simulated network with scheduled delivery, jitter, packet loss, and coarse collision modeling.
ModeledRadio
Radio implementation backed by a ModeledNetwork.
ModeledTestPlatform
Platform bundle for the modeled simulated components.
SimulatedNetwork
Shared simulated radio topology and frame queues.
SimulatedRadio
Radio implementation backed by a SimulatedNetwork.
TestPlatform
Platform bundle for the simulated test components.

Functions§

make_modeled_test_mac
Create a test MAC coordinator using the modeled simulated components.
make_test_mac
Create a test MAC coordinator using the simulated components.

Type Aliases§

ModeledTestMac
Convenience alias for a Mac instantiated with the modeled simulated components.
TestMac
Convenience alias for a Mac instantiated with the simulated test components.