EleFits  5.3.0
A modern C++ API on top of CFITSIO
Loading...
Searching...
No Matches
Classes | Functions
Euclid::Fits::Test Namespace Reference

Detailed Description

Test-related classes and functions.

Classes

class  NewMefFile
 MefFile with random name and create-only policy. More...
 
class  NewSifFile
 SifFile with random name and create-only policy. More...
 
struct  RandomHeader
 A random set of Records. More...
 
class  RandomRaster
 A random Raster of given type and shape. More...
 
class  RandomScalarColumn
 A random scalar Column of given type. More...
 
struct  RandomTable
 A set of random columns which cover the whole set of supported types. More...
 
class  RandomVectorColumn
 A small vector column of given type. More...
 
class  SmallRaster
 A 2D image Raster of floats. More...
 
class  SmallTable
 A small set of columns with various types. More...
 
class  TemporaryMefFile
 Temporary MefFile with random name. More...
 
class  TemporarySifFile
 Temporary SifFile with random name. More...
 
struct  TestBintable
 Temporary MEF file with one binary table extension. More...
 

Functions

template<typename T >
almost_max ()
 Value very close to the max of the type.
 
template<typename T >
almost_min ()
 Value very close to the min of the type.
 
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...
 
template<typename T >
static Record< T > generate_random_record (const std::string &k, const std::string &u, const std::string &c)
 Generate a random record.
 
template<typename T >
static Record< T > generate_random_record (const std::string &type_name)
 Generate a random record. More...
 
template<typename T >
generate_random_value (T min=half_min< T >(), T max=half_max< T >())
 Generate a random value of given type.
 
template<typename T >
std::vector< T > generate_random_vector (long size, T min=half_min< T >(), T max=half_max< T >())
 Generate a random vector of given type and size.
 
template<typename T >
half_max ()
 Half the max of the type.
 
template<typename T >
half_min ()
 Half the min of the type.
 
template<typename TRaster , typename URaster >
bool raster_approx (const TRaster &test, const URaster &ref, double tol=0.01)
 Check whether a test raster is approximately equal to a reference raster. More...
 
std::string temporary_filename ()
 Valid name for temporary files.