Expand description
Testing-related utilities.
Structs§
- Fake
Bindings Ctx - Test-only implementation of
BindingsContext. - Fake
Bindings CtxState - Bindings context state held by
FakeBindingsCtx. - Fake
CtxBuilder - A builder for
FakeCtxs. - Fake
Device Id - A fake device ID for use in testing.
- NoOp
Link Resolution Notifier - A link resolution notifier that ignores all notifications.
- Pure
IpDevice AndIp Version - A tuple of device ID and IP version.
- TestApi
- An API struct for test utilities.
Enums§
- Dispatched
Event - Wraps all events emitted by Core into a single enum type.
- Dispatched
Frame - A frame that’s been dispatched to Bindings to be sent out the device driver.
- Fake
CtxNetwork Spec - The fake network spec to use in integration tests.
Constants§
- DEFAULT_
INTERFACE_ METRIC - The default interface routing metric for test interfaces.
Traits§
- CtxPair
Ext - Extensions to
CtxPairwhen it holds a full stack state. - Test
IpExt - An extension trait for
Ipproviding test-related functionality.
Functions§
- new_
filter_ egress_ ip_ packet - Creates a new
IpPacketwith the specified addresses and body. - new_
simple_ fake_ network - Creates a new
FakeNetworkofCtxs in a simple two-host configuration.
Type Aliases§
- Ctx
- Context available during the execution of the netstack.
- Fake
Core Ctx - Shorthand for
StackStatethat uses aFakeBindingsCtx. - FakeCtx
- Shorthand for
Ctxwith aFakeBindingsCtx.