Static Public Member Functions | List of all members
testing::SimpleEnvironmentSetupClass < lar::example::ShowerCalibrationGaloreScale, TestEnv > Struct Template Reference

Environment setup helper for ShowerCalibrationGaloreScale. More...

#include <ShowerCalibrationGaloreScaleTestHelpers.h>

Static Public Member Functions

static lar::example::ShowerCalibrationGaloreScalesetup (TestEnv &env)
 

Detailed Description

template<typename TestEnv>
struct testing::SimpleEnvironmentSetupClass < lar::example::ShowerCalibrationGaloreScale, TestEnv >

Environment setup helper for ShowerCalibrationGaloreScale.

Template Parameters
TestEnvtype of environment to set up
See also
SimpleEnvironmentSetupClass, simpleEnvironmentSetup

A service provider is set up in the environment, associated with the types lar::example::ShowerCalibrationGaloreScale. Its configuration is read from "services.ShowerCalibrationGaloreService".

The environment is expected to expose an interface equivalent to the one of testing::TesterEnvironment.

This class specialisation enables the support of SimpleProviderSetup() methods of testing::TesterEnvironment. It should be possible to set up a testing environment by calling:

env.SimpleProviderSetup<lar::example::ShowerCalibrationGaloreScale>();

The provider will be available from any of these two calls:

env.Provider<lar::example::ShowerCalibrationGaloreScale>();
env.Provider<lar::example::ShowerCalibrationGalore>();

Definition at line 61 of file ShowerCalibrationGaloreScaleTestHelpers.h.

Member Function Documentation

template<typename TestEnv >
static lar::example::ShowerCalibrationGaloreScale* testing::SimpleEnvironmentSetupClass < lar::example::ShowerCalibrationGaloreScale, TestEnv >::setup ( TestEnv &  env)
inlinestatic

Definition at line 64 of file ShowerCalibrationGaloreScaleTestHelpers.h.

65  {
68  lar::example::ShowerCalibrationGalore, // provider interface
69  TestEnv
70  >
71  (env, "ShowerCalibrationGaloreService"); // configuration key
72  }
A shower calibration service provider applying a uniform scale.
Prov * SimpleEnvironmentStandardSetupByName(TestEnv &env, std::string service_name)
Basic implementation of a environment setup helper.
Interface for a shower calibration service provider.

The documentation for this struct was generated from the following file: