SpECTRE  v2025.03.17
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
TestHelpers Namespace Reference

Collection of classes and functions useful for testing. More...

Namespaces

namespace  AnalyticData
 Functions for testing analytic data.
 
namespace  AnalyticSolutions
 Functions for testing analytic solutions.
 
namespace  elliptic
 Helper functions to test elliptic first-order systems.
 
namespace  gr
 Make random GR variables which correct physical behavior, e.g. spatial metric will be positive definite.
 
namespace  hydro
 Make random hydro variables which correct physical behavior, e.g. Lorentz factor will be greater or equal than one.
 
namespace  serialization
 Collection of classes and functions for testing serialization.
 
namespace  VerifyGrSolution
 Functions for testing GR analytic solutions.
 

Functions

template<typename T , typename Metavariables = NoSuchType>
test_creation (const std::string &construction_string)
 Creates an instance of a given option-creatable type. More...
 
template<typename OptionTag , typename Metavariables = NoSuchType>
TestCreation_detail::option_return_t< OptionTag > test_option_tag (const std::string &construction_string)
 Runs the option parser on a given tag. More...
 
template<typename BaseClass , typename DerivedClass >
std::unique_ptr< BaseClass > test_factory_creation (const std::string &construction_string)
 Creates a class of a known derived type using a factory. More...
 
template<typename OptionTag , typename DerivedClass >
OptionTag::type test_option_tag_factory_creation (const std::string &construction_string)
 A wrapper that allows testing an option tag without having to write a Metavariables class. Combines TestHelpers::test_factory_creation() and TestHelpers::test_option_tag(). More...
 
void do_something (gsl::not_null< SomeType * >)
 

Detailed Description

Collection of classes and functions useful for testing.