Macros | |
#define | _DRAKE_TEST_NO_THROW(statement, fail_macro) |
#define | DRAKE_EXPECT_NO_THROW(statement) _DRAKE_TEST_NO_THROW(statement, ADD_FAILURE) |
Unittest helper to explicitly indicate that a statement should not throw an exception. More... | |
#define | DRAKE_ASSERT_NO_THROW(statement) _DRAKE_TEST_NO_THROW(statement, GTEST_FAIL) |
Same as DRAKE_EXPECT_NO_THROW, but halts the execution of the given test case on failure. More... | |
#define _DRAKE_TEST_NO_THROW | ( | statement, | |
fail_macro | |||
) |
#define DRAKE_ASSERT_NO_THROW | ( | statement | ) | _DRAKE_TEST_NO_THROW(statement, GTEST_FAIL) |
Same as DRAKE_EXPECT_NO_THROW, but halts the execution of the given test case on failure.
#define DRAKE_EXPECT_NO_THROW | ( | statement | ) | _DRAKE_TEST_NO_THROW(statement, ADD_FAILURE) |
Unittest helper to explicitly indicate that a statement should not throw an exception.
This should be used in place of EXPECT_NO_THROW because it will have useful information when a failure indeed happens.