pub struct PassesMultipleTests;
Rule that asserts a good Rust project:
"Should have multiple tests which pass."
Some degree of automated testing is necessary for nearly all code,
and Rust makes adding tests nearly painless. The exact number
of tests is highly situational, but there should be more than
one, as even brand-new cargo
library projects are supplied with
a dummy test by default.
This rule will actually attempt to run a project's tests through
cargo test
. If this Rule
is executed before the project has
been built or tested at all, the process of acquiring dependencies
and building them may take a while.
Returns the "default value" for a type. Read more
Formats the value using the given formatter. Read more
The central tenet of this Rule
. Serves as a unique identifier for Rule instances, as well as a human-readable summary of what this Rule
means for a given project. Read more
Does the Rust project found at cargo_manifest_path
uphold this Rule
, as summarized in the description
? Read more