a class describing how to run the jobs for driver unit tests More...
#include <UnitTestConfig.h>
Public Member Functions | |
virtual | ~UnitTestConfig () noexcept |
virtual destructor for virtual base class | |
virtual std::unique_ptr < SH::DiskWriter > | make_file_writer (const std::string &name) const |
create a file write for the given file | |
virtual void | setupJob (Job &job) const |
apply extra job configuration parameters | |
Public Attributes | |
std::shared_ptr< Driver > | m_driver |
the driver being tested |
a class describing how to run the jobs for driver unit tests
This is so that I can write driver unit tests as briefly as possible. The unit tests should derive a class from this class that sets the proper members in the constructor and then pass the object into the parametric unit test.
virtual EL::UnitTestConfig::~UnitTestConfig | ( | ) | [virtual] |
virtual destructor for virtual base class
std::unique_ptr< SH::DiskWriter > EL::UnitTestConfig::make_file_writer | ( | const std::string & | name | ) | const [virtual] |
create a file write for the given file
This allows to place the test files into non-standard locations
void EL::UnitTestConfig::setupJob | ( | Job & | job | ) | const [virtual] |
apply extra job configuration parameters
std::shared_ptr<Driver> EL::UnitTestConfig::m_driver |
the driver being tested
This is the only member the derived classes actually have to set. More members will be added over time, but those will meaningful default values