Module test_utils

Source
Expand description

Common utilities used by directory related tests.

Most assertions are macros as they need to call async functions themselves. As a typical test will have multiple assertions, it save a bit of typing to write assert_something!(arg) instead of assert_something(arg).await.

Re-exports§

pub use run::run_client;
pub use run::test_client;

Structs§

DirentsSameInodeBuilder
A helper to build the “expected” output for a ReadDirents call from the Directory protocol in fuchsia.io.

Functions§

run_server_client
A thin wrapper around run::run_server_client() that sets the Marker to be [DirectoryMarker], and providing explicit type for the get_client closure argument. This makes it possible for the caller not to provide explicit types.
test_server_client
A thin wrapper around run::test_server_client() that sets the Marker to be [DirectoryMarker], and providing explicit type for the get_client closure argument. This makes it possible for the caller not to provide explicit types.