Module netstack3_core::testutil
source · Expand description
Testing-related utilities.
Modules§
- Context test utilities.
- NDP test utilities.
Structs§
- A structure holding a core and a bindings context.
- Test-only implementation of
crate::BindingsContext
. - Bindings context state held by
FakeBindingsCtx
. - A wrapper which implements
RngCore
andCryptoRng
for anyRngCore
. - A builder for
FakeEventDispatcher
s. - A convenient monotonically increasing identifier to use as the bindings’
DeviceIdentifier
in tests. - An API struct for test utilities.
Enums§
- Wraps all events emitted by Core into a single enum type.
- A frame that’s been dispatched to Bindings to be sent out the device driver.
Functions§
- Create a new deterministic RNG from a seed.
- Invokes a function multiple times with different RNG seeds.
Type Aliases§
- Context available during the execution of the netstack.
- Shorthand for
StackState
that uses aFakeBindingsCtx
. - Shorthand for
Ctx
with aFakeBindingsCtx
.