Test-related classes and functions.
|
std::string | temporaryFilename () |
| Valid name for temporary files.
|
|
template<typename TRaster , typename URaster > |
bool | rasterApprox (const TRaster &test, const URaster &ref, double tol=0.01) |
| Check whether a test raster is approximately equal to a reference raster. More...
|
|
template<typename T > |
static Record< T > | generateRandomRecord (const std::string &typeName) |
| Generate a random record. More...
|
|
template<typename T > |
static Record< T > | generateRandomRecord (const std::string &k, const std::string &u, const std::string &c) |
| Generate a random record.
|
|
template<typename T > |
T | almostMin () |
| Value very close to the min of the type.
|
|
template<typename T > |
T | almostMax () |
| Value very close to the max of the type.
|
|
template<typename T > |
T | halfMin () |
| Half the min of the type.
|
|
template<typename T > |
T | halfMax () |
| Half the max of the type.
|
|
template<typename T > |
T | generateRandomValue (T min=halfMin< T >(), T max=halfMax< T >()) |
| Generate a random value of given type.
|
|
template<typename T > |
std::vector< T > | generateRandomVector (long size, T min=halfMin< T >(), T max=halfMax< T >()) |
| Generate a random vector of given type and size.
|
|
template<typename T > |
bool | approx (T test, T ref, double tol=0.01) |
| Check whether a test value is approximately equal to a reference value. More...
|
|