Expand description

Crate to provide fidl logging and test setup helpers for conformance tests for fuchsia.io.

Modules

Utility functions for getting combinations of flags.
Test harness helper struct.

Constants

A default value for NodeAttributes, with zeros set for all fields.
A common name for a file to create in a conformance test.
A common set of file contents to write into a test file in a conformance test.

Functions

Attempts to open the given file, and checks the status is NOT_FOUND.
Asserts that no OnOpen event was sent on an opened proxy. This takes the event stream out of the proxy, which can only be done once.
Converts a generic NodeProxy to either a file or directory proxy.
Creates a directory with the given DirectoryEntry, opening the file with the given file flags, and returning a Buffer object initialized with the given vmo_flags.
Makes a subdirectory with a name and a set of entries.
Makes an executable file to be placed in the test directory.
Makes a file to be placed in the test directory.
Returns the .name field from a given DirectoryEntry, otherwise panics.
Returns the specified node flags from the given NodeProxy.
Listens for the OnOpen event and returns its [Status]. This takes the event stream out of the proxy, which can only be done once.
Helper function to call get_token on a directory. Only use this if testing something other than the get_token call directly.
Helper function to open a sub-directory with the given flags. Only use this if testing something other than the open call directly.
Helper function to open a file with the given flags. Only use this if testing something other than the open call directly.
Helper function to open the desired node in the root folder. Asserts that open_node_status succeeds.
Helper function to open the desired node in the root folder.
Helper function to open a sub-directory as readable and writable. Only use this if testing something other than the open call directly.
Helper function to read a file and return its contents. Only use this if testing something other than the read call directly.
Makes a remote directory with a name, which forwards the requests to the given directory proxy.
Constructs a directory from a set of directory entries.
Asserts that the given vmo_rights align with the expected_vmo_rights passed to a get_backing_memory call. We check that the returned rights align with and do not exceed those in the given flags, that we have at least basic VMO rights, and that the flags align with the expected sharing mode.
Makes a vmo file to be placed in the test directory.