TestPaths Class Referenceabstract
Helper interface to generate path information to support test access to source/data files. More...
#include <TestPaths.hh>
| Public Member Functions | |
| TestPaths (const std::string &_projectSourcePath=kTestingProjectSourceDir) | |
| Constructor. | |
| virtual | ~TestPaths () | 
| Destructor. | |
| virtual bool | ProjectSourcePath (std::string &_sourceDir)=0 | 
| virtual bool | TestTmpPath (std::string &_tmpDir)=0 | 
| Populate the path to a temporary directory. | |
| Protected Attributes | |
| std::string | projectSourcePath | 
| Path to the root of the project source. | |
Detailed Description
Helper interface to generate path information to support test access to source/data files.
It is intended that there is an implementation of this interface for each relevant buildsystem.
Constructor & Destructor Documentation
◆ TestPaths()
| 
 | explicit | 
Constructor.
- Parameters
- 
  [in] _projectSourcePath Path to the root of the project source 
◆ ~TestPaths()
| 
 | virtual | 
Destructor.
Member Function Documentation
◆ ProjectSourcePath()
| 
 | pure virtual | 
brief Populate the path to the root project source directory
- Parameters
- 
  [out] _sourceDir path to the root project source directory 
- Returns
- True if path successfully found and set, false otherwise
Implemented in BazelTestPaths, and CMakeTestPaths.
◆ TestTmpPath()
| 
 | pure virtual | 
Populate the path to a temporary directory.
- Parameters
- 
  [out] _tmpDir path to the root temporary directory 
- Returns
- True if path successfully found and set, false otherwise
Implemented in BazelTestPaths, and CMakeTestPaths.
Member Data Documentation
◆ projectSourcePath
| 
 | protected | 
Path to the root of the project source.
The documentation for this class was generated from the following file: