Module testutil

Module testutil 

Source
Expand description

Test utilities for the fuchsia.net.neighbors FIDL library.

This library defines a mix of internal and external test utilities, supporting tests of this fidl_fuchsia_net_neighbor_ext crate and tests of clients of the fuchsia.net.neighbors FIDL library, respectively.

Enums§

EventSpec
Specification for a generated neighbor event.

Functions§

create_fake_view
Create a ViewProxy whose server end will respond to the first OpenEntryIterator request it receives by returning an entry iterator backed by the given event stream. The returned future drives the entry iterator implementation.
generate_event
Generates an arbitrary but valid neighbor entry iterator item that is unique to the given seed.
generate_event_from_spec
Generates a neighbor entry iterator item from the provided spec.
generate_events_from_spec
Generates a list of neighbor entry iterator items from the provided spec.
generate_events_in_range
Generates a list of arbitrary but valid neighbor entry iterator items, one for each value in the provided range of seeds.
serve_view_request
Serve an OpenEntryIterator request to the View protocol by instantiating an entry iterator client backed by the given event stream. The returned future drives the entry iterator implementation.