Classes | Namespaces | Functions
ProviderTestHelpers.h File Reference

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.
 

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...
 

Detailed Description

Helper classes to be used together with LArSoft's unit test.

Date
May 10th, 2016
Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.fnal..nosp@m.gov)
See also
ProviderList.h

Currently provides:

This is a pure template header. It does not require additional libraries to be linked.

Definition in file ProviderTestHelpers.h.