Module netstack3_base::testutil
source · Expand description
Test utilities provided to all crates.
Structs§
- A test helper used to provide an implementation of a bindings context.
- A wrapper which implements
RngCore
andCryptoRng
for anyRngCore
. - A fake
EventContext
. - A fake [
FrameContext
]. - A fake implementation of
Instant
for use in testing. - A fake
InstantContext
which stores the current time as aFakeInstant
. - A fake
TimerContext
which stores time as aFakeInstantCtx
. - A fake
TracingContext
. - Arbitrary data of type
D
attached to aFakeInstant
.
Traits§
- Adds methods for interacting with
FakeTimerCtx
and its wrappers. - A trait for abstracting contexts that may contain a
FakeFrameCtx
. - A trait abstracting access to a
FakeTimerCtx
instance.
Functions§
- Create a new deterministic RNG from a seed.
- Invokes a function multiple times with different RNG seeds.