Utopia 2
Framework for studying models of complex & adaptive systems.
|
A base class for an infrastructure fixture. More...
#include <fixtures.hh>
Public Types | |
using | RNG = RNGType |
The random number generator type to use. | |
using | Config = DataIO::Config |
Make the config type more easily available. | |
Public Member Functions | |
BaseInfrastructure (const std::string &config_file_path="") | |
Construct the BaseInfrastructure fixture. | |
~BaseInfrastructure () | |
Destruct the BaseInfrastructure fixture, tearing down the test logger. | |
Public Attributes | |
const Config | cfg |
The test configuration. | |
std::shared_ptr< spdlog::logger > | log |
A logger to use during the test or to pass to entities that need it. | |
std::shared_ptr< RNG > | rng |
The shared random number generator instance, randomly seeded. | |
A base class for an infrastructure fixture.
If a YAML configuration file is to be loaded, the fixture needs to be derived from and the path to the YAML file needs to be specified
using Utopia::TestTools::BaseInfrastructure< RNGType >::Config = DataIO::Config |
Make the config type more easily available.
The random number generator type to use.
|
inline |
Construct the BaseInfrastructure fixture.
|
inline |
Destruct the BaseInfrastructure fixture, tearing down the test logger.
The test configuration.
std::shared_ptr<spdlog::logger> Utopia::TestTools::BaseInfrastructure< RNGType >::log |
A logger to use during the test or to pass to entities that need it.
std::shared_ptr<RNG> Utopia::TestTools::BaseInfrastructure< RNGType >::rng |
The shared random number generator instance, randomly seeded.