ReFRACtor
|
There are a number of tests that need to use a standard set of objects, similar to what we generate when running l2_fp. More...
#include <configuration_fixture.h>
Public Member Functions | |
ConfigurationFixture (const std::string &Config_file="config.lua") | |
virtual | ~ConfigurationFixture () |
std::string | absco_4d_dir () const |
Location of absco 4d table. More... | |
std::string | absco_data_dir () const |
Location of absco table. More... | |
void | add_file_to_cleanup (const std::string &Fname) |
SpectralDomain | highres_grid (int Spec_index) const |
DoubleWithUnit | ils_half_width (int Spec_index) const |
Useful function that appears in a few tests, so collect here. More... | |
std::string | input_dir () const |
Directory where input data such as static input files and default Lua configuration files are located. More... | |
SpectralDomain | lowres_grid (int Spec_index) const |
std::string | merra_data_dir () const |
Location of merra data. More... | |
std::string | test_data_dir () const |
Directory where test data is. More... | |
void | turn_on_logger () const |
Normally log messages don't go anywhere, so we don't clutter our unit test output. More... | |
There are a number of tests that need to use a standard set of objects, similar to what we generate when running l2_fp.
This is fairly expensive to create, so this fixture creates one copy for all the tests and add handling for sharing it.
Fixtures that are closely related to this one can derive from it and do things like change the config file to load (through the constructor argument), or individual values.
Definition at line 35 of file configuration_fixture.h.
ConfigurationFixture::ConfigurationFixture | ( | const std::string & | Config_file = "config.lua" | ) |
Definition at line 8 of file configuration_fixture.cc.
|
inlinevirtual |
Definition at line 38 of file configuration_fixture.h.
|
inherited |
Location of absco 4d table.
Note that all of the Absco is going to be 4d in the future, so this can eventually go away. But for now most of the unit tests are 3d except for the few depending on the newer 4d tables.
Definition at line 140 of file global_fixture.cc.
|
inherited |
Location of absco table.
Definition at line 101 of file global_fixture.cc.
|
inlineinherited |
Definition at line 23 of file global_fixture.h.
|
inline |
Definition at line 67 of file configuration_fixture.h.
|
inline |
Useful function that appears in a few tests, so collect here.
Definition at line 62 of file configuration_fixture.h.
|
inherited |
Directory where input data such as static input files and default Lua configuration files are located.
Definition at line 63 of file global_fixture.cc.
|
inline |
Definition at line 64 of file configuration_fixture.h.
|
inherited |
Location of merra data.
Definition at line 119 of file global_fixture.cc.
|
inherited |
Directory where test data is.
This already includes the trailing slash, so you can just do test_data_data() + "foo.txt" in your unit tests.
Definition at line 83 of file global_fixture.cc.
|
inherited |
Normally log messages don't go anywhere, so we don't clutter our unit test output.
But in some cases you may want to the logger turned on. This automatically gets turned off again at the end of the unit test.
Definition at line 52 of file global_fixture.cc.
boost::shared_ptr<Absorber> FullPhysics::ConfigurationFixture::config_absorber |
Definition at line 41 of file configuration_fixture.h.
boost::shared_ptr<Aerosol> FullPhysics::ConfigurationFixture::config_aerosol |
Definition at line 42 of file configuration_fixture.h.
boost::shared_ptr<RtAtmosphere> FullPhysics::ConfigurationFixture::config_atmosphere |
Definition at line 43 of file configuration_fixture.h.
boost::shared_ptr<ErrorAnalysis> FullPhysics::ConfigurationFixture::config_error_analysis |
Definition at line 46 of file configuration_fixture.h.
boost::shared_ptr<ForwardModel> FullPhysics::ConfigurationFixture::config_forward_model |
Definition at line 57 of file configuration_fixture.h.
boost::shared_ptr<Ground> FullPhysics::ConfigurationFixture::config_ground |
Definition at line 56 of file configuration_fixture.h.
boost::shared_ptr<InitialGuess> FullPhysics::ConfigurationFixture::config_initial_guess |
Definition at line 49 of file configuration_fixture.h.
boost::shared_ptr<Instrument> FullPhysics::ConfigurationFixture::config_instrument |
Definition at line 51 of file configuration_fixture.h.
boost::shared_ptr<Level1bSampleCoefficient> FullPhysics::ConfigurationFixture::config_level_1b |
Definition at line 55 of file configuration_fixture.h.
boost::shared_ptr<Observation> FullPhysics::ConfigurationFixture::config_observation |
Definition at line 58 of file configuration_fixture.h.
boost::shared_ptr<Pressure> FullPhysics::ConfigurationFixture::config_pressure |
Definition at line 52 of file configuration_fixture.h.
boost::shared_ptr<PressureLevelInput> FullPhysics::ConfigurationFixture::config_pressure_level_input |
Definition at line 45 of file configuration_fixture.h.
std::vector<boost::shared_ptr<RegisterOutputBase> > FullPhysics::ConfigurationFixture::config_register_output |
Definition at line 50 of file configuration_fixture.h.
boost::shared_ptr<RadiativeTransfer> FullPhysics::ConfigurationFixture::config_rt |
Definition at line 59 of file configuration_fixture.h.
boost::shared_ptr<ConnorSolver> FullPhysics::ConfigurationFixture::config_solver |
Definition at line 47 of file configuration_fixture.h.
boost::shared_ptr<SpectralWindow> FullPhysics::ConfigurationFixture::config_spectral_window |
Definition at line 48 of file configuration_fixture.h.
boost::shared_ptr<SpectrumSampling> FullPhysics::ConfigurationFixture::config_spectrum_sampling |
Definition at line 54 of file configuration_fixture.h.
boost::shared_ptr<StateVector> FullPhysics::ConfigurationFixture::config_state_vector |
Definition at line 44 of file configuration_fixture.h.
boost::shared_ptr<Temperature> FullPhysics::ConfigurationFixture::config_temperature |
Definition at line 53 of file configuration_fixture.h.
blitz::Array<double, 1> FullPhysics::ConfigurationFixture::epsilon |
This is an epsilon that can be used to generate finite difference Jacobians for unit tests.
Definition at line 73 of file configuration_fixture.h.
LuabindObject FullPhysics::ConfigurationFixture::lua_config |
Definition at line 75 of file configuration_fixture.h.