Macros | |
| #define | ADD_FAILURE(...) |
| #define | EXPECT_EQ(LEFT, ...) |
| #define | EXPECT_NE(LEFT, ...) |
| #define | EXPECT_NEAR(LEFT, RIGHT, ...) |
| #define | EXPECT_LT(LEFT, ...) |
| #define | EXPECT_LE(LEFT, ...) |
| #define | EXPECT_GT(LEFT, ...) |
| #define | EXPECT_GE(LEFT, ...) |
| #define | EXPECT_TRUE(...) |
| #define | EXPECT_FALSE(...) |
| #define | EXPECT_ANY_THROW(...) |
| #define | EXPECT_THROW(TYPE, ...) |
Macro Definition Documentation
| #define ADD_FAILURE | ( | ... | ) |
ADD_FAILURE(MESSAGE) indicate about custom failure.
To failure information is included:
- file location
- line number
- message
- Note
- message parameter is optional - if not provided empty will be used
| #define EXPECT_ANY_THROW | ( | ... | ) |
EXPECT_ANY_THROW(INVOKE, MESSAGE) indicate about if any exception will be not thrown from INVOKE.
To failure information is included:
- file location
- line number
- INVOKE stringified expression,
- optional message
- Note
- message parameter is optional - if not provided empty will be used
- Returns
- check result
| #define EXPECT_EQ | ( | LEFT, | |
| ... | |||
| ) |
EXPECT_EQ(LEFT, RIGHT, MESSAGE) indicate about failure if LEFT and RIGHT are not equal(using: !(LEFT == RIGHT))
To failure information is included:
- file location
- line number
- LEFT and RIGHT stringified expression,
- LEFT and RIGHT value if convertiable to string (by std::ostringstream interface)
- optional message
- Note
- message parameter is optional - if not provided empty will be used
- Returns
- comparation result
| #define EXPECT_FALSE | ( | ... | ) |
EXPECT_FALSE(EXPR, MESSAGE) indicate about failure if EXPR is true(using: !(EXPR == false))
To failure information is included:
- file location
- line number
- EXPR stringified expression,
- EXPR value
- optional message
- Note
- message parameter is optional - if not provided empty will be used
- Returns
- comparation result
| #define EXPECT_GE | ( | LEFT, | |
| ... | |||
| ) |
EXPECT_GE(LEFT, RIGHT, MESSAGE) indicate about failure if LEFT is not greater or equal RIGHT(using: !(LEFT >= RIGHT))
To failure information is included:
- file location
- line number
- LEFT and RIGHT stringified expression,
- LEFT and RIGHT value if convertiable to string (by std::ostringstream interface)
- optional message
- Note
- message parameter is optional - if not provided empty will be used
- Returns
- comparation result
| #define EXPECT_GT | ( | LEFT, | |
| ... | |||
| ) |
EXPECT_GT(LEFT, RIGHT, MESSAGE) indicate about failure if LEFT is not greater than RIGHT(using: !(LEFT > RIGHT))
To failure information is included:
- file location
- line number
- LEFT and RIGHT stringified expression,
- LEFT and RIGHT value if convertiable to string (by std::ostringstream interface)
- optional message
- Note
- message parameter is optional - if not provided empty will be used
- Returns
- comparation result
| #define EXPECT_LE | ( | LEFT, | |
| ... | |||
| ) |
EXPECT_LE(LEFT, RIGHT, MESSAGE) indicate about failure if LEFT is not less or equal RIGHT(using: !(LEFT <= RIGHT))
To failure information is included:
- file location
- line number
- LEFT and RIGHT stringified expression,
- LEFT and RIGHT value if convertiable to string (by std::ostringstream interface)
- optional message
- Note
- message parameter is optional - if not provided empty will be used
- Returns
- comparation result
| #define EXPECT_LT | ( | LEFT, | |
| ... | |||
| ) |
EXPECT_LT(LEFT, RIGHT, MESSAGE) indicate about failure if LEFT is not less than RIGHT(using: !(LEFT < RIGHT))
To failure information is included:
- file location
- line number
- LEFT and RIGHT stringified expression,
- LEFT and RIGHT value if convertiable to string (by std::ostringstream interface)
- optional message
- Note
- message parameter is optional - if not provided empty will be used
- Returns
- comparation result
| #define EXPECT_NE | ( | LEFT, | |
| ... | |||
| ) |
EXPECT_NE(LEFT, RIGHT, MESSAGE) indicate about failure if LEFT and RIGHT are equal(using: !(LEFT != RIGHT))
To failure information is included:
- file location
- line number
- LEFT and RIGHT stringified expression,
- LEFT and RIGHT value if convertiable to string (by std::ostringstream interface)
- optional message
- Note
- message parameter is optional - if not provided empty will be used
- Returns
- comparation result
| #define EXPECT_NEAR | ( | LEFT, | |
| RIGHT, | |||
| ... | |||
| ) |
EXPECT_NEAR(LEFT, RIGHT, PRECISION, MESSAGE) indicate about failure if LEFT and RIGHT are not very close.
To failure information is included:
- file location
- line number
- LEFT and RIGHT stringified expression,
- LEFT and RIGHT value if convertiable to string (by std::ostringstream interface)
- optional message
- Note
- message parameter is optional - if not provided empty will be used
- Returns
- comparation result
| #define EXPECT_THROW | ( | TYPE, | |
| ... | |||
| ) |
EXPECT_THROW(TYPE, INVOKE, MESSAGE) indicate about if any exception will be not thrown from INVOKE or thrown exception type is not equal to expected type.
To failure information is included:
- file location
- line number
- TYPE and INVOKE stringified expression,
- optional message
- Note
- message parameter is optional - if not provided empty will be used
- Returns
- check result
| #define EXPECT_TRUE | ( | ... | ) |
EXPECT_TRUE(EXPR, MESSAGE) indicate about failure if EXPR is true(using: !(EXPR == true))
To failure information is included:
- file location
- line number
- EXPR stringified expression,
- EXPR value
- optional message
- Note
- message parameter is optional - if not provided empty will be used
- Returns
- comparation result

1.8.11