![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Predefined macros for unit test management. More...
#include <IPSDKUtil/Tools/ProcessingResult.h>#include <UnitTest/IPSDKUnitTestTools/ImgComparison.h>Go to the source code of this file.
Macros | |
| #define | IPSDK_UT_CHECK_BOOLRESULT(predicate) |
| macro allowing to test (in unit test case meaning) a BoolResult value More... | |
| #define | IPSDK_UT_CHECK_BOOLRESULT_FALSE(predicate) |
| macro allowing to test (in unit test case meaning) that a BoolResult value is false More... | |
| #define | IPSDK_UT_GET_LOG() |
| Allow to obtain the instance of UnitTestLog. More... | |
| #define | IPSDK_UT_LOG_TEST_RES(strPrefix, boolRes) |
| Notify the UnitTestLog of the test result. More... | |
| #define | IPSDK_UT_SUITE_START(UnitTestSuiteName) |
| Defines a fixture that initializes a pointer to the UnitTestLog instance and notify for the start of the test suite UnitTestSuiteName. More... | |
| #define | IPSDK_UT_SUITE_END() |
| #define | IPSDK_UT_CASE_START(UnitTestCaseName) |
| Starts the test case "UnitTestCaseName" and notifies the UnitTestLog instance. More... | |
| #define | IPSDK_UT_CASE_END() |
| Ends the test case. More... | |
| #define | IPSDK_UT_CHECK(P) |
| Calls and complete BOOST_CHECK by notifying the UnitTestLog instance. More... | |
| #define | IPSDK_CHECK_MESSAGE(P, M) |
| Calls and complete BOOST_CHECK_MESSAGE by notifying the UnitTestLog instance. More... | |
| #define | IPSDK_TEST_MESSAGE(M) |
| Calls and complete BOOST_TEST_MESSAGE by notifying the UnitTestLog instance. More... | |
| #define | IPSDK_CHECK_EQUAL(V1, V2) |
| Calls and complete BOOST_CHECK_EQUAL by notifying the UnitTestLog instance. More... | |
| #define | IPSDK_CHECK_NE(V1, V2) |
| Calls and complete BOOST_CHECK_NE by notifying the UnitTestLog instance. More... | |
| #define | IPSDK_CHECK_NE_STR(V1, V2) |
| Calls and complete BOOST_CHECK_NE by notifying the UnitTestLog instance when V1 and V2 are strings. More... | |
| #define | IPSDK_CHECK_LT(V1, V2) |
| Calls and complete BOOST_CHECK_LT by notifying the UnitTestLog instance. More... | |
| #define | IPSDK_CHECK_GE(V1, V2) |
| Calls and complete BOOST_CHECK_GE by notifying the UnitTestLog instance. More... | |
| #define | IPSDK_CHECK_CLOSE(V1, V2, TOL) |
| Calls and complete BOOST_CHECK_CLOSE by notifying the UnitTestLog instance The test succeeds if abs(V1-V2)/V1*100 < TOL. More... | |
| #define | IPSDK_CHECK_THROW(statement, exception) |
| Check if statement throws an exception and calls BOOST_CHECK_THROW. More... | |
| #define | IPSDK_CHECK_NO_THROW(statement) |
| Check if statement throws an exception and calls BOOST_CHECK_NO_THROW. More... | |
| #define | IPSDK_REQUIRE(P) |
| Check if the predicate P is respected. More... | |
| #define | IPSDK_REQUIRE_MESSAGE(P, M) |
| Check if the predicate P is respected and displays the message M. More... | |
| #define | IPSDK_WARN_LT(V1, V2) |
| Calls and complete BOOST_WARN_LT by notifying the UnitTestLog instance. More... | |
Predefined macros for unit test management.
| #define IPSDK_UT_CHECK_BOOLRESULT | ( | predicate | ) |
macro allowing to test (in unit test case meaning) a BoolResult value
| #define IPSDK_UT_CHECK_BOOLRESULT_FALSE | ( | predicate | ) |
macro allowing to test (in unit test case meaning) that a BoolResult value is false
| #define IPSDK_UT_GET_LOG | ( | ) |
Allow to obtain the instance of UnitTestLog.
| #define IPSDK_UT_LOG_TEST_RES | ( | strPrefix, | |
| boolRes | |||
| ) |
Notify the UnitTestLog of the test result.
| #define IPSDK_UT_SUITE_START | ( | UnitTestSuiteName | ) |
Defines a fixture that initializes a pointer to the UnitTestLog instance and notify for the start of the test suite UnitTestSuiteName.
Ends of the test suite.
| #define IPSDK_UT_SUITE_END | ( | ) |
| #define IPSDK_UT_CASE_START | ( | UnitTestCaseName | ) |
Starts the test case "UnitTestCaseName" and notifies the UnitTestLog instance.
| #define IPSDK_UT_CASE_END | ( | ) |
Ends the test case.
| #define IPSDK_UT_CHECK | ( | P | ) |
Calls and complete BOOST_CHECK by notifying the UnitTestLog instance.
| #define IPSDK_CHECK_MESSAGE | ( | P, | |
| M | |||
| ) |
Calls and complete BOOST_CHECK_MESSAGE by notifying the UnitTestLog instance.
| #define IPSDK_TEST_MESSAGE | ( | M | ) |
Calls and complete BOOST_TEST_MESSAGE by notifying the UnitTestLog instance.
| #define IPSDK_CHECK_EQUAL | ( | V1, | |
| V2 | |||
| ) |
Calls and complete BOOST_CHECK_EQUAL by notifying the UnitTestLog instance.
| #define IPSDK_CHECK_NE | ( | V1, | |
| V2 | |||
| ) |
Calls and complete BOOST_CHECK_NE by notifying the UnitTestLog instance.
| #define IPSDK_CHECK_NE_STR | ( | V1, | |
| V2 | |||
| ) |
Calls and complete BOOST_CHECK_NE by notifying the UnitTestLog instance when V1 and V2 are strings.
| #define IPSDK_CHECK_LT | ( | V1, | |
| V2 | |||
| ) |
Calls and complete BOOST_CHECK_LT by notifying the UnitTestLog instance.
| #define IPSDK_CHECK_GE | ( | V1, | |
| V2 | |||
| ) |
Calls and complete BOOST_CHECK_GE by notifying the UnitTestLog instance.
| #define IPSDK_CHECK_CLOSE | ( | V1, | |
| V2, | |||
| TOL | |||
| ) |
Calls and complete BOOST_CHECK_CLOSE by notifying the UnitTestLog instance The test succeeds if abs(V1-V2)/V1*100 < TOL.
| #define IPSDK_CHECK_THROW | ( | statement, | |
| exception | |||
| ) |
Check if statement throws an exception and calls BOOST_CHECK_THROW.
| #define IPSDK_CHECK_NO_THROW | ( | statement | ) |
Check if statement throws an exception and calls BOOST_CHECK_NO_THROW.
| #define IPSDK_REQUIRE | ( | P | ) |
Check if the predicate P is respected.
| #define IPSDK_REQUIRE_MESSAGE | ( | P, | |
| M | |||
| ) |
Check if the predicate P is respected and displays the message M.
| #define IPSDK_WARN_LT | ( | V1, | |
| V2 | |||
| ) |
Calls and complete BOOST_WARN_LT by notifying the UnitTestLog instance.
1.8.14