Unit test related definitions.
More...
|
| #define | CHECK_NOT_EQUAL(Argument1, Argument2) |
| | Checks if two arguments are not equal. More...
|
| |
| #define | CHECK_EQUAL_TOLERANCE(ReferenceValue, Tolerance, TestValue) |
| | Checks if two values are equal with considering a tolerance. More...
|
| |
| #define | CHECK_IN_RANGE(Minimum, Maximum, TestValue) |
| | Check a value in in range between minimum and maximum. More...
|
| |
| #define | MOCK_FUNC(Name) |
| | Creates a mock entry into the mock database for the current function/method. More...
|
| |
| #define | MOCK_ARG(Argument) |
| | Creates a mock entry for an argument of the current function mock. More...
|
| |
Unit test related definitions.
| #define CHECK_EQUAL_TOLERANCE |
( |
|
ReferenceValue, |
|
|
|
Tolerance, |
|
|
|
TestValue |
|
) |
| |
Checks if two values are equal with considering a tolerance.
- Parameters
-
| ReferenceValue | Is the reference value for that check. |
| Tolerance | Is the tolerance, where the tested value must be inside. |
| TestValue | Is the value to test. |
Definition at line 64 of file UnitTest.h.
| #define CHECK_IN_RANGE |
( |
|
Minimum, |
|
|
|
Maximum, |
|
|
|
TestValue |
|
) |
| |
Check a value in in range between minimum and maximum.
- Parameters
-
| Minimum | Is the lower border. |
| Maximum | Is the higher border. |
| TestValue | Is the value to test. |
Definition at line 70 of file UnitTest.h.
| #define CHECK_NOT_EQUAL |
( |
|
Argument1, |
|
|
|
Argument2 |
|
) |
| |
Checks if two arguments are not equal.
- Parameters
-
| Argument1 | Is the first argument to check. |
| Argument2 | Is the second argument to check. |
Definition at line 58 of file UnitTest.h.
| #define MOCK_ARG |
( |
|
Argument | ) |
|
Creates a mock entry for an argument of the current function mock.
- Parameters
-
| Argument | Is the name of the argument. |
Definition at line 78 of file UnitTest.h.
| #define MOCK_FUNC |
( |
|
Name | ) |
|
Creates a mock entry into the mock database for the current function/method.
- Parameters
-
| Name | Is the name of the function. |
Definition at line 74 of file UnitTest.h.