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 | |
ConfigurationCoxmunkFixture (const std::string &Config_file="config_coxmunk.lua") | |
virtual | ~ConfigurationCoxmunkFixture () |
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. This version reads config_coxmunk.lua
Definition at line 88 of file configuration_fixture.h.
ConfigurationCoxmunkFixture::ConfigurationCoxmunkFixture | ( | const std::string & | Config_file = "config_coxmunk.lua" | ) |
Definition at line 87 of file configuration_fixture.cc.
|
inlinevirtual |
Definition at line 91 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.
|
inlineinherited |
Definition at line 67 of file configuration_fixture.h.
|
inlineinherited |
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.
|
inlineinherited |
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.
|
inherited |
Definition at line 41 of file configuration_fixture.h.
|
inherited |
Definition at line 42 of file configuration_fixture.h.
|
inherited |
Definition at line 43 of file configuration_fixture.h.
|
inherited |
Definition at line 46 of file configuration_fixture.h.
|
inherited |
Definition at line 57 of file configuration_fixture.h.
|
inherited |
Definition at line 56 of file configuration_fixture.h.
|
inherited |
Definition at line 49 of file configuration_fixture.h.
|
inherited |
Definition at line 51 of file configuration_fixture.h.
|
inherited |
Definition at line 55 of file configuration_fixture.h.
|
inherited |
Definition at line 58 of file configuration_fixture.h.
|
inherited |
Definition at line 52 of file configuration_fixture.h.
|
inherited |
Definition at line 45 of file configuration_fixture.h.
|
inherited |
Definition at line 50 of file configuration_fixture.h.
|
inherited |
Definition at line 59 of file configuration_fixture.h.
|
inherited |
Definition at line 47 of file configuration_fixture.h.
|
inherited |
Definition at line 48 of file configuration_fixture.h.
|
inherited |
Definition at line 54 of file configuration_fixture.h.
|
inherited |
Definition at line 44 of file configuration_fixture.h.
|
inherited |
Definition at line 53 of file configuration_fixture.h.
|
inherited |
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.
|
inherited |
Definition at line 75 of file configuration_fixture.h.