|
AGX Dynamics
2.37.3.2
|
#include <agx/config/AGX_USE_UNIT_TESTS.h>#include <agx/Interrupt.h>#include <agx/agxPhysics_export.h>#include <agxIO/ArgumentParser.h>Go to the source code of this file.
Namespaces | |
| agxUnit | |
Macros | |
| #define | AGXUNIT_ASSERT(condition) |
| Report error if condition returns false. More... | |
| #define | AGXUNIT_ASSERT_DOUBLES_EQUAL(expected, actual, delta) |
| Report an error if the difference between expected and actual exceeds delta. More... | |
| #define | AGXUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE(message, expected, actual, delta) |
| Report an error (with additional message) if the difference between expected and actual exceeds delta. More... | |
| #define | AGXUNIT_ASSERT_EQUAL(expected, actual) |
| Report an error of expected != actual. More... | |
| #define | AGXUNIT_ASSERT_EQUAL_MESSAGE(message, expected, actual) |
| Report an error (with additional message) if expected != actual. More... | |
| #define | AGXUNIT_ASSERT_MESSAGE(message, condition) |
| Report error (with additional message) if condition returns false. More... | |
| #define | AGXUNIT_BEGIN_SCOPE() AGXUNIT_IF_HACK 0 |
| #define | AGXUNIT_BEGIN_TEST(X) |
| Begin a new named test. Name (X) must be unique through all tests. More... | |
| #define | AGXUNIT_BEGIN_TEST_GROUP(X) |
| Begin a new group, not necessary to use. More... | |
| #define | AGXUNIT_EMPTY_APPLICATION() |
| #define | AGXUNIT_END_SCOPE() AGXUNIT_ENDIF_HACK |
| #define | AGXUNIT_END_TEST(X) |
| End a named test. More... | |
| #define | AGXUNIT_END_TEST_GROUP(X) |
| End a new group. More... | |
| #define | AGXUNIT_ENDIF_HACK #endif |
| #define | AGXUNIT_FAIL(message) |
| Just fail with a message. More... | |
| #define | AGXUNIT_IF_HACK #if |
| Start an #if 0 if UNITTEST IS NOT ENABLED. More... | |
| #define | AGXUNIT_TRY_AND_CONTINUE_END() |
| #define | AGXUNIT_TRY_BEGIN() |
| End a try scope for unit testing, catches any exception thrown. More... | |
| #define | AGXUNIT_TRY_END(X) |
| Start a try scope for unittesting. More... | |
Functions | |
| bool | agxUnit::haveUnittestingArguments (agxIO::ArgumentParser *arguments) |
| bool | agxUnit::haveUnittestingArguments (int argc, char **argv) |
| void | agxUnit::initUnittestFrameWork (agxIO::ArgumentParser *) |
| Initializes the unit testing framework from an argument parser. More... | |
| void | agxUnit::initUnittestFrameWork (int, char **) |
| Initializes the unit testing framework from command line arguments. More... | |
| bool | agxUnit::isUnittestingEnabled () |
| Is unit testing enabled? (Has to be both built and initialized). More... | |
| bool | agxUnit::shouldOnlyFastUnittestsBeRun () |
| Should only fast unit tests be run? More... | |
| #define AGXUNIT_ASSERT | ( | condition | ) |
Report error if condition returns false.
Definition at line 374 of file UnitMacros.h.
| #define AGXUNIT_ASSERT_DOUBLES_EQUAL | ( | expected, | |
| actual, | |||
| delta | |||
| ) |
Report an error if the difference between expected and actual exceeds delta.
Definition at line 384 of file UnitMacros.h.
| #define AGXUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE | ( | message, | |
| expected, | |||
| actual, | |||
| delta | |||
| ) |
Report an error (with additional message) if the difference between expected and actual exceeds delta.
Definition at line 386 of file UnitMacros.h.
| #define AGXUNIT_ASSERT_EQUAL | ( | expected, | |
| actual | |||
| ) |
Report an error of expected != actual.
Definition at line 380 of file UnitMacros.h.
| #define AGXUNIT_ASSERT_EQUAL_MESSAGE | ( | message, | |
| expected, | |||
| actual | |||
| ) |
Report an error (with additional message) if expected != actual.
Definition at line 382 of file UnitMacros.h.
| #define AGXUNIT_ASSERT_MESSAGE | ( | message, | |
| condition | |||
| ) |
Report error (with additional message) if condition returns false.
Definition at line 376 of file UnitMacros.h.
Referenced by agxUnit::testAllocationOverflow(), and agxUnit::testBadAlloc().
| #define AGXUNIT_BEGIN_SCOPE | ( | ) | AGXUNIT_IF_HACK 0 |
Definition at line 347 of file UnitMacros.h.
| #define AGXUNIT_BEGIN_TEST | ( | X | ) |
Begin a new named test. Name (X) must be unique through all tests.
Definition at line 365 of file UnitMacros.h.
Referenced by agxUnit::testAllocationOverflow(), and agxUnit::testBadAlloc().
| #define AGXUNIT_BEGIN_TEST_GROUP | ( | X | ) |
Begin a new group, not necessary to use.
Definition at line 359 of file UnitMacros.h.
| #define AGXUNIT_EMPTY_APPLICATION | ( | ) |
Definition at line 388 of file UnitMacros.h.
| #define AGXUNIT_END_SCOPE | ( | ) | AGXUNIT_ENDIF_HACK |
Definition at line 348 of file UnitMacros.h.
| #define AGXUNIT_END_TEST | ( | X | ) |
End a named test.
Name (X) must be unique through all tests. And it must match a BEGIN() with the same name
Definition at line 371 of file UnitMacros.h.
Referenced by agxUnit::testAllocationOverflow(), and agxUnit::testBadAlloc().
| #define AGXUNIT_END_TEST_GROUP | ( | X | ) |
End a new group.
Definition at line 362 of file UnitMacros.h.
| #define AGXUNIT_ENDIF_HACK #endif |
Definition at line 346 of file UnitMacros.h.
| #define AGXUNIT_FAIL | ( | message | ) |
Just fail with a message.
Definition at line 378 of file UnitMacros.h.
| #define AGXUNIT_IF_HACK #if |
Start an #if 0 if UNITTEST IS NOT ENABLED.
Definition at line 345 of file UnitMacros.h.
| #define AGXUNIT_TRY_AND_CONTINUE_END | ( | ) |
Definition at line 353 of file UnitMacros.h.
| #define AGXUNIT_TRY_BEGIN | ( | ) |
End a try scope for unit testing, catches any exception thrown.
Definition at line 356 of file UnitMacros.h.
| #define AGXUNIT_TRY_END | ( | X | ) |
Start a try scope for unittesting.
Definition at line 351 of file UnitMacros.h.