We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6e5405d + aee971a commit 911fe63Copy full SHA for 911fe63
googletest/src/lib.rs
@@ -62,7 +62,10 @@ use internal::test_outcome::{TestAssertionFailure, TestOutcome};
62
63
/// A `Result` whose `Err` variant indicates a test failure.
64
///
65
-/// All test functions should return `Result<()>`.
+/// The assertions [`verify_that!`][crate::verify_that],
66
+/// [`verify_pred!`][crate::verify_pred], and [`fail!`][crate::fail] evaluate
67
+/// to `Result<()>`. A test function may return `Result<()>` in combination with
68
+/// those macros to abort immediately on assertion failure.
69
70
/// This can be used with subroutines which may cause the test to fatally fail
71
/// and which return some value needed by the caller. For example:
0 commit comments