Macro googletest::prelude::expect_that
source · macro_rules! expect_that { ($actual:expr, $expected:expr) => { ... }; }
Expand description
Matches the given value against the given matcher, marking the test as failed but continuing execution if it does not match.
This is a non-fatal 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_that!(actual, expected).and_log_failure()