#include "gtest/gtest.h"#include "itkNumericTraits.h"#include "itkMetaDataDictionary.h"#include "itkMetaDataObject.h"#include <cmath>
Include dependency graph for itkGTestPredicate.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Namespaces | |
| namespace | itk |
| namespace | itk::GTest |
| namespace | itk::GTest::Predicate |
Macros | |
| #define | ITK_EXPECT_METADATA_VALUE(metaDict, key, knownValue) |
| #define | ITK_EXPECT_VECTOR_NEAR(val1, val2, rmsError) |
Functions | |
| template<typename T> | |
| inline ::testing::AssertionResult | itk::GTest::Predicate::CheckMetaDataPredFormat (const char *metaDictExpr, const char *keyExpr, const char *knownValueExpr, itk::MetaDataDictionary &metaDict, const std::string &key, const T &knownValue) |
| template<typename T1, typename T2> | |
| inline ::testing::AssertionResult | itk::GTest::Predicate::VectorDoubleRMSPredFormat (const char *expr1, const char *expr2, const char *rmsErrorExpr, const T1 &val1, const T2 &val2, double rmsError) |
| #define ITK_EXPECT_METADATA_VALUE | ( | metaDict, | |
| key, | |||
| knownValue ) |
A custom GTest macro for verifying a value in a MetaDataDictionary.
Definition at line 40 of file itkGTestPredicate.h.
| #define ITK_EXPECT_VECTOR_NEAR | ( | val1, | |
| val2, | |||
| rmsError ) |
A custom GTest macro for comparing 2 itk array-like objects. This verifies that the root mean squares error between the two array-like objects doesn't exceed the given error.
Definition at line 35 of file itkGTestPredicate.h.