Slicer
4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Go to the source code of this file.
Macros | |
#define | CHECK_BOOL(actual, expected) |
Verifies if actual bool value is the same as expected. More... | |
#define | CHECK_DOUBLE(actual, expected) |
Verifies if actual double value is the same as expected. More... | |
#define | CHECK_DOUBLE_TOLERANCE(actual, expected, tolerance) |
Verifies if actual double value is the same as expected, within the specified tolerance. More... | |
#define | CHECK_EXIT_SUCCESS(actual) |
#define | CHECK_INT(actual, expected) |
Verifies if actual int value is the same as expected. More... | |
#define | CHECK_INT_ADD_REPORT(actual, expected, methodToCallOnFailure) |
#define | CHECK_NOT_NULL(pointer) |
Verifies that pointer is not NULL. More... | |
#define | CHECK_NOT_NULL_ADD_REPORT(pointer, methodToCallOnFailure) |
#define | CHECK_NULL(pointer) |
Verifies that pointer is NULL. More... | |
#define | CHECK_POINTER(actual, expected) |
Verifies if actual pointer value is the same as expected. More... | |
#define | CHECK_POINTER_DIFFERENT(actual, expected) |
Verifies if actual pointer value is the same as expected. More... | |
#define | CHECK_STD_STRING(actual, expected) |
#define | CHECK_STD_STRING_DIFFERENT(actual, expected) |
#define | CHECK_STRING(actual, expected) |
#define | CHECK_STRING_ADD_REPORT(actual, expected, methodToCallOnFailure) |
#define | CHECK_STRING_DIFFERENT(actual, expected) |
#define CHECK_BOOL | ( | actual, | |
expected | |||
) |
Verifies if actual bool value is the same as expected.
Definition at line 147 of file vtkAddonTestingMacros.h.
#define CHECK_DOUBLE | ( | actual, | |
expected | |||
) |
Verifies if actual double value is the same as expected.
Definition at line 91 of file vtkAddonTestingMacros.h.
#define CHECK_DOUBLE_TOLERANCE | ( | actual, | |
expected, | |||
tolerance | |||
) |
Verifies if actual double value is the same as expected, within the specified tolerance.
Definition at line 100 of file vtkAddonTestingMacros.h.
#define CHECK_EXIT_SUCCESS | ( | actual | ) |
Definition at line 82 of file vtkAddonTestingMacros.h.
#define CHECK_INT | ( | actual, | |
expected | |||
) |
Verifies if actual int value is the same as expected.
Definition at line 109 of file vtkAddonTestingMacros.h.
#define CHECK_INT_ADD_REPORT | ( | actual, | |
expected, | |||
methodToCallOnFailure | |||
) |
Verifies if actual int value is the same as expected, if check fails then it calls methodToCallOnFailure before returning with failure
Definition at line 119 of file vtkAddonTestingMacros.h.
#define CHECK_NOT_NULL | ( | pointer | ) |
Verifies that pointer is not NULL.
Definition at line 63 of file vtkAddonTestingMacros.h.
#define CHECK_NOT_NULL_ADD_REPORT | ( | pointer, | |
methodToCallOnFailure | |||
) |
Verifies that pointer is NULL, if check fails then it calls methodToCallOnFailure before returning with failure
Definition at line 73 of file vtkAddonTestingMacros.h.
#define CHECK_NULL | ( | pointer | ) |
Verifies that pointer is NULL.
Convenience macros for unit tests.
The macro returns from the current method with EXIT_FAILURE if the check fails. Expressions can be passed as arguments, they are guaranteed to be executed only once.
Example:
Definition at line 53 of file vtkAddonTestingMacros.h.
#define CHECK_POINTER | ( | actual, | |
expected | |||
) |
Verifies if actual pointer value is the same as expected.
Definition at line 129 of file vtkAddonTestingMacros.h.
#define CHECK_POINTER_DIFFERENT | ( | actual, | |
expected | |||
) |
Verifies if actual pointer value is the same as expected.
Definition at line 138 of file vtkAddonTestingMacros.h.
#define CHECK_STD_STRING | ( | actual, | |
expected | |||
) |
Verifies if actual std::string value is the same as expected. It is safe to use for comparing std::string values. It cannot handle NULL pointer inputs.
Definition at line 168 of file vtkAddonTestingMacros.h.
#define CHECK_STD_STRING_DIFFERENT | ( | actual, | |
expected | |||
) |
Verifies if actual std::string value is not the same as expected. It is safe to use for comparing std::string values. It cannot handle NULL pointer inputs.
Definition at line 203 of file vtkAddonTestingMacros.h.
#define CHECK_STRING | ( | actual, | |
expected | |||
) |
Verifies if actual const char* value is the same as expected. It can handle NULL pointer inputs.
Definition at line 157 of file vtkAddonTestingMacros.h.
#define CHECK_STRING_ADD_REPORT | ( | actual, | |
expected, | |||
methodToCallOnFailure | |||
) |
Verifies if actual const char* value is the same as expected, if check fails then it calls methodToCallOnFailure before returning with failure It can handle NULL pointer inputs.
Definition at line 181 of file vtkAddonTestingMacros.h.
#define CHECK_STRING_DIFFERENT | ( | actual, | |
expected | |||
) |
Verifies if actual const char* value is not the same as expected. It can handle NULL pointer inputs.
Definition at line 192 of file vtkAddonTestingMacros.h.