Helper classes to be used together with LArSoft's unit test. More...
#include <functional>
#include <memory>
#include <string>
#include <utility>
Go to the source code of this file.
Classes | |
struct | testing::DefaultSetupProviderClass< Prov > |
A default implementation for provider setup class. More... | |
struct | testing::ProviderSetupClass< Prov > |
Class to create and set up a new provider. More... | |
struct | testing::SimpleEnvironmentSetupClass< Prov, TestEnv > |
Environment helper to set up a service provider. More... | |
Namespaces | |
testing | |
LArSoft test utilities. | |
Typedefs | |
template<typename Prov , typename... Args> | |
using | testing::setupProvider_t = std::function< std::unique_ptr< Prov >(Args...)> |
Generic setup provider function type. More... | |
Functions | |
template<typename Prov , typename... Args> | |
std::unique_ptr< Prov > | testing::setupProvider (Args &&...args) |
Function calling ProviderSetupClass<>::setup for the specified provider. More... | |
template<typename Prov , typename Interface , typename TestEnv > | |
Prov * | testing::SimpleEnvironmentStandardSetupByName (TestEnv &env, std::string service_name) |
Basic implementation of a environment setup helper. More... | |
template<typename Prov , typename TestEnv > | |
Prov * | testing::SimpleEnvironmentStandardSetupByName (TestEnv &env, std::string service_name) |
template<typename Prov , typename TestEnv > | |
Prov * | testing::simpleEnvironmentSetup (TestEnv &env) |
Sets up a provider in a specified test environment. More... | |
Helper classes to be used together with LArSoft's unit test.
Currently provides:
ProviderSetupClass
class (and setupProvider()
helper) to be specialised to support the setup of a specific service providerSimpleEnvironmentSetupClass
class (and simpleEnvironmentSetup()
helper) to be specialised to support the one-step set up of the provider in a LArSoft tester environmentThis is a pure template header. It does not require additional libraries to be linked.
Definition in file ProviderTestHelpers.h.