#[etest]Expand description
Function attribute to declare an “etest”
Supported parameters:
-
skip=<expr>: when expression evaluates totrue, test is skipped -
skip_result=<expr>: allows to set explicitly a return value when test is skipped -
uses=<literal>oruses=[<expr>, ...]: specifies resources which are “used” (shared) -
consumes=<literal>orconsumes=[<expr>, ...]: specifies resources which are “consumed” (exclusively) -
no_default_uses: removes basic resources from the “uses” list -
notparallel: consumes basic resources so that test is not run with other ones -
timeout=<expr>: test panics after the given time when not finished
See etest crate documentation for details.