TestEnvironment is a singleton that defines the unit testing enviroment.
More...
#include <TestEnvironment.h>
|
void | setup (const eckit::Configuration &conf) |
|
|
boost::scoped_ptr< const eckit::LocalConfiguration > | config_ |
|
TestEnvironment is a singleton that defines the unit testing enviroment.
TestEnvironment contains globally available information for the unit tests. It is needed because there is no easy method to pass configuration and other data to the tests. By defining a singleton, each test can use TestEnvironment::getInstance() to get access to the global data.
Definition at line 28 of file TestEnvironment.h.
◆ TestEnvironment()
test::TestEnvironment::TestEnvironment |
( |
| ) |
|
|
inlineprivate |
◆ ~TestEnvironment()
test::TestEnvironment::~TestEnvironment |
( |
| ) |
|
|
inlineprivate |
◆ config()
static const eckit::Configuration& test::TestEnvironment::config |
( |
| ) |
|
|
inlinestatic |
◆ getInstance()
◆ setup()
void test::TestEnvironment::setup |
( |
const eckit::Configuration & |
conf | ) |
|
|
inline |
◆ config_
boost::scoped_ptr<const eckit::LocalConfiguration> test::TestEnvironment::config_ |
|
private |
The documentation for this class was generated from the following file: