BazelTestPaths Class Reference
Implementation of TestPaths interface for Bazel. More...
#include <BazelTestPaths.hh>
Public Member Functions | |
GZ_COMMON_TESTING_VISIBLE | ~BazelTestPaths () override |
Destructor. More... | |
bool GZ_COMMON_TESTING_VISIBLE | ProjectSourcePath (std::string &_sourceDir) override |
Documentation inherited. More... | |
GZ_COMMON_TESTING_VISIBLE | TestPaths (const std::string &_projectSourcePath=kTestingProjectSourceDir) |
Constructor from TestPaths. More... | |
bool GZ_COMMON_TESTING_VISIBLE | TestTmpPath (std::string &_tmpDir) override |
Documentation inherited. More... | |
Public Member Functions inherited from TestPaths | |
GZ_COMMON_TESTING_VISIBLE | TestPaths (const std::string &_projectSourcePath=kTestingProjectSourceDir) |
Constructor. More... | |
virtual GZ_COMMON_TESTING_VISIBLE | ~TestPaths ()=0 |
Destructor. More... | |
Additional Inherited Members | |
Protected Attributes inherited from TestPaths | |
std::string | projectSourcePath |
Path to the root of the project source. More... | |
Detailed Description
Implementation of TestPaths interface for Bazel.
It is not intended that users will directly construct this, but rather utilize the TestPathFactory.
The main mechanism for detecting a bazel build is via the presence of the TEST_SRCDIR and TEST_UNDECLARED_OUTPUTS_DIR environment variables. Additionally, tests built via gz-bazel should set GZ_BAZEL_DIR.
For source files to be available for bazel builds, they need to be set in the "data" section of the relevant cc_library or cc_test call.
Constructor & Destructor Documentation
◆ ~BazelTestPaths()
|
override |
Destructor.
Member Function Documentation
◆ ProjectSourcePath()
|
overridevirtual |
Documentation inherited.
Implements TestPaths.
◆ TestPaths()
◆ TestTmpPath()
|
overridevirtual |
Documentation inherited.
Implements TestPaths.
The documentation for this class was generated from the following file: