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§
- Dirents
Same Inode Builder - 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 theMarker
to be [DirectoryMarker
], and providing explicit type for theget_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 theMarker
to be [DirectoryMarker
], and providing explicit type for theget_client
closure argument. This makes it possible for the caller not to provide explicit types.