tts v2.3.0
The Tiny Test System
 
Loading...
Searching...
No Matches
tts Namespace Reference

Main TTS namespace. More...

Detailed Description

Main TTS namespace.

TTS - Tiny Test System Copyright : TTS Contributors & Maintainers SPDX-License-Identifier: BSL-1.0

Classes

struct  between
 Defines a data generator that produce value within an interval. More...
 
struct  options
 Command line arguments lightweight processor. More...
 
struct  prng_generator
 Wraps any standard random distribution to be used as a Data Generator by TTS_ULP_RANGE_CHECK. More...
 
struct  ramp
 Defines a data generator that produce a ramp of data. More...
 
struct  reverse_ramp
 Defines a data generator that produce a reversed ramp of data. More...
 
struct  sample
 Defines a data generator that produce random value using a given distribution. More...
 
struct  type
 Type wrapper. More...
 
struct  types
 Type list structure. More...
 
struct  value
 Defines a data generator that always return the same value. More...
 

Typedefs

using arithmetic_types = concatenate_t< real_types, int_types, uint_types >
 List of all standard arithmetic types.
 
using int_types = types< std::int64_t, std::int32_t, std::int16_t, std::int8_t >
 List of all standard signed integer types.
 
using integral_types = concatenate_t< int_types, uint_types >
 List of all standard integer types.
 
using real_types = types< double, float >
 List of all standard floating point types.
 
template<typename T >
using realistic_distribution = typename detail::choose_distribution< T >::type
 Realistic standard random distribution.
 
template<typename T >
using realistic_generator = prng_generator< T, ::tts::realistic_distribution< T > >
 Data generator using the tts::realistic_distribution random distribution.
 
using signed_types = concatenate_t< real_types, int_types >
 List of all standard signed types.
 
using uint_types = types< std::uint64_t, std::uint32_t, std::uint16_t, std::uint8_t >
 List of all standard unsigned types.
 

Functions

template<typename T , typename U >
double absolute_distance (T const &a, U const &b)
 Compute the absolute distance between two values.
 
inline ::tts::options const & arguments ()
 Retrieve the current list of command line argument.
 
template<typename T >
std::string as_string (T const &e)
 Value-to-string conversion.
 
template<typename T , typename V >
auto as_value (V const &v)
 Single evaluation of value extension point.
 
template<typename... G>
auto generate (G... g)
 Build a data generator.
 
void initialize (int argc, const char **argv)
 Initializes a TTS test suite.
 
template<typename T , typename U >
bool is_ieee_equal (T const &a, U const &b)
 Compute if values are exactly equals or all NaNs/Invalids.
 
template<typename T >
constexpr auto name (T const &)
 Provide a string containing the name of the type of its parameter in readable form.
 
std::int32_t random_seed (int base_seed=-1)
 Initialize the random seed for tests.
 
template<typename T , typename U >
double relative_distance (T const &a, U const &b)
 Compute the relative distance between two values.
 
int report (std::ptrdiff_t fails, std::ptrdiff_t invalids)
 Final tests handler customization point.
 
template<typename T , typename U >
double ulp_distance (T const &a, U const &b)
 Compute the distance in ULP between two values.
 

Variables

template<typename T >
auto const typename_ = detail::typename_impl<T>::value()
 Provide a string containing the name of the type T in readable form.