Module fuchsia_inspect::testing[][src]


Macro to simplify tree matching in tests. The first argument is the actual tree passed as a DiagnosticsHierarchyGetter (e.g. a DiagnosticsHierarchy or an Inspector). The second argument is given to tree_assertion! which creates a TreeAssertion to validate the tree.

Macro to simplify creating TreeAssertions. Commonly used indirectly through the second parameter of assert_data_tree!. See assert_data_tree! for more usage examples.


A PropertyAssertion that always passes

An assertion for a histogram property.

A PropertyAssertion that passes for non-zero, unsigned integers.

Struct for matching against a Data tree (DiagnosticsHierarchy).


A type which can function as a “view” into a diagnostics hierarchy, optionally allocating a new instance to service a request.

Trait implemented by types that can act as properies for assertion.