ReFRACtor
global_fixture.h
Go to the documentation of this file.
1 #ifndef GLOBAL_FIXTURE_H
2 #define GLOBAL_FIXTURE_H
3 #include <string>
4 #include <vector>
5 
6 namespace FullPhysics {
7 /****************************************************************/
11 public:
12  GlobalFixture();
13  virtual ~GlobalFixture();
14  std::string input_dir() const;
15  std::string test_data_dir() const;
16  std::string absco_data_dir() const;
17  std::string merra_data_dir() const;
18  std::string absco_4d_dir() const;
19  void turn_on_logger() const;
20  // Add file to be removed at end of unit test. Ok if file doesn't
21  // actually exist (i.e., no special handling needed for error
22  // conditions).
23  void add_file_to_cleanup(const std::string& Fname)
24  { cleanup_list.push_back(Fname); }
25 private:
26  void set_default_value();
27  std::vector<std::string> cleanup_list;
28 };
29 }
30 #endif
This is a global fixture that is available to all unit tests.
void turn_on_logger() const
Normally log messages don&#39;t go anywhere, so we don&#39;t clutter our unit test output.
std::string absco_4d_dir() const
Location of absco 4d table.
GlobalFixture()
Setup for all unit tests.
std::string absco_data_dir() const
Location of absco table.
std::string input_dir() const
Directory where input data such as static input files and default Lua configuration files are located...
virtual ~GlobalFixture()
Teardown for all unit tests.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
void add_file_to_cleanup(const std::string &Fname)
std::string test_data_dir() const
Directory where test data is.
std::string merra_data_dir() const
Location of merra data.

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:11