EL::UnitTestConfig Struct Reference

a class describing how to run the jobs for driver unit tests More...

#include <UnitTestConfig.h>

List of all members.

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< Driverm_driver
 the driver being tested

Detailed Description

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.


Constructor & Destructor Documentation

virtual EL::UnitTestConfig::~UnitTestConfig (  )  [virtual]

virtual destructor for virtual base class

Guarantee
no-fail

Member Function Documentation

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

Guarantee
basic
Failures
i/o errors
void EL::UnitTestConfig::setupJob ( Job job  )  const [virtual]

apply extra job configuration parameters

Guarantee
basic
Failures
config specific

Member Data Documentation

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


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1