LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Environment setup helper for LArPropertiesStandard. More...
#include "LArPropertiesStandardTestHelpers.h"
Static Public Member Functions | |
static detinfo::LArPropertiesStandard * | setup (TestEnv &env) |
Environment setup helper for LArPropertiesStandard.
TestEnv | type of environment to set up |
A service provider is set up in the environment, associated with the types detinfo::LArPropertiesStandard and detinfo::LArProperties. Its configuration is read from "services.LArPropertiesService".
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<detinfo::LArPropertiesStandard>();
The provider will be available from any of these two calls:
env.Provider<detinfo::LArPropertiesStandard>(); env.Provider<detinfo::LArProperties>();
Definition at line 100 of file LArPropertiesStandardTestHelpers.h.
|
inlinestatic |
Definition at line 101 of file LArPropertiesStandardTestHelpers.h.
References testing::SimpleEnvironmentStandardSetupByName().