macro_rules! expect_pred {
    ($($content:tt)*) => { ... };
}
Expand description

Asserts that the given predicate applied to the given arguments returns true, failing the test but continuing execution if not.

This is a non-fatal predicate assertion: the test continues execution in the event of assertion failure.

This can only be invoked inside tests with the googletest::test attribute. The assertion must occur in the same thread as that running the test itself.

Invoking this macro is equivalent to using and_log_failure as follows:

verify_pred!(predicate(...)).and_log_failure()