FV3 Bundle
test::TestEnvironment Class Reference

TestEnvironment is a singleton that defines the unit testing enviroment. More...

#include <TestEnvironment.h>

Inheritance diagram for test::TestEnvironment:
[legend]
Collaboration diagram for test::TestEnvironment:
[legend]

Public Member Functions

void setup (const eckit::Configuration &conf)
 

Static Public Member Functions

static TestEnvironmentgetInstance ()
 
static const eckit::Configuration & config ()
 

Private Member Functions

 TestEnvironment ()
 
 ~TestEnvironment ()
 

Private Attributes

boost::scoped_ptr< const eckit::LocalConfiguration > config_
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TestEnvironment()

test::TestEnvironment::TestEnvironment ( )
inlineprivate

Definition at line 42 of file TestEnvironment.h.

◆ ~TestEnvironment()

test::TestEnvironment::~TestEnvironment ( )
inlineprivate

Definition at line 43 of file TestEnvironment.h.

Member Function Documentation

◆ config()

static const eckit::Configuration& test::TestEnvironment::config ( )
inlinestatic

Definition at line 39 of file TestEnvironment.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getInstance()

static TestEnvironment& test::TestEnvironment::getInstance ( )
inlinestatic

Definition at line 30 of file TestEnvironment.h.

Here is the caller graph for this function:

◆ setup()

void test::TestEnvironment::setup ( const eckit::Configuration &  conf)
inline

Definition at line 35 of file TestEnvironment.h.

Here is the caller graph for this function:

Member Data Documentation

◆ config_

boost::scoped_ptr<const eckit::LocalConfiguration> test::TestEnvironment::config_
private

Definition at line 45 of file TestEnvironment.h.


The documentation for this class was generated from the following file: