Public Member Functions | Static Public Member Functions | Private Types | Private Attributes | List of all members
GeometryGeoIDTestFixture Class Reference
Inheritance diagram for GeometryGeoIDTestFixture:
testing::GeometryTesterEnvironment< ConfigurationClass >

Public Member Functions

 GeometryGeoIDTestFixture ()
 Constructor: initialize the tester with the Geometry from base class. More...
 
Tester_tTester ()
 Retrieves the local tester. More...
 

Static Public Member Functions

static Tester_tGlobalTester ()
 Retrieves the global tester. More...
 

Private Types

using Tester_t = geo::GeometryGeoIDTestAlg
 
using TesterRegistry_t = testing::TestSharedGlobalResource< Tester_t >
 
- Private Types inherited from testing::GeometryTesterEnvironment< ConfigurationClass >
using SharedGeoPtr_t = GeoResources_t::ResourcePtr_t
 
using SharedGeoPtr_t = GeoResources_t::ResourcePtr_t
 
using ChannelMapClass = typename ConfigurationClass::ChannelMapClass
 
using ChannelMapClass = typename ConfigurationClass::ChannelMapClass
 
- Private Types inherited from testing::BasicTesterEnvironment< ConfigurationClass >
using Configuration_t = ConfigurationClass
 
using Configuration_t = ConfigurationClass
 

Private Attributes

std::shared_ptr< Tester_ttester_ptr
 our tester (may be shared) More...
 
- Private Attributes inherited from testing::TesterEnvironment< ConfigurationClass >
ProviderList providers
 list of available providers More...
 

Additional Inherited Members

- Private Member Functions inherited from testing::GeometryTesterEnvironment< ConfigurationClass >
 GeometryTesterEnvironment (bool bSetup=true)
 Constructor: sets everything up and declares the test started. More...
 
virtual ~GeometryTesterEnvironment ()
 Destructor: closing remarks. More...
 
 GeometryTesterEnvironment (bool bSetup=true)
 Constructor: sets everything up and declares the test started. More...
 
virtual ~GeometryTesterEnvironment ()
 Destructor: closing remarks. More...
 
 GeometryTesterEnvironment (ConfigurationClass const &cfg_obj, bool bSetup=true)
 Setup from a configuration. More...
 
 GeometryTesterEnvironment (ConfigurationClass &&cfg_obj, bool bSetup=true)
 
gar::geo::GeometryCore const * Geometry () const
 Returns a pointer to the geometry. More...
 
SharedGeoPtr_t SharedGeometry () const
 
 GeometryTesterEnvironment (ConfigurationClass const &cfg_obj, bool bSetup=true)
 Setup from a configuration. More...
 
 GeometryTesterEnvironment (ConfigurationClass &&cfg_obj, bool bSetup=true)
 
geo::GeometryCore const * Geometry () const
 Returns a pointer to the geometry. More...
 
SharedGeoPtr_t SharedGeometry () const
 
virtual void Setup ()
 The complete initialization, ran at construction by default. More...
 
virtual std::unique_ptr< gar::geo::GeometryCoreCreateNewGeometry () const
 Creates a new geometry. More...
 
virtual void SetupGeometry ()
 Sets up the geometry (creates and registers it) More...
 
virtual void Setup ()
 The complete initialization, ran at construction by default. More...
 
virtual std::unique_ptr< geo::GeometryCoreCreateNewGeometry () const
 Creates a new geometry. More...
 
virtual void SetupGeometry ()
 Sets up the geometry (creates and registers it) More...
 
virtual void RegisterGeometry (SharedGeoPtr_t new_geom)
 Get ownership of the specified geometry and registers it as global. More...
 
virtual void RegisterGeometry (gar::geo::GeometryCore const *new_geom)
 
virtual void RegisterGeometry (SharedGeoPtr_t new_geom)
 Get ownership of the specified geometry and registers it as global. More...
 
virtual void RegisterGeometry (geo::GeometryCore const *new_geom)
 
- Private Member Functions inherited from testing::TesterEnvironment< ConfigurationClass >
template<typename Prov , typename... Args>
Prov * SetupProvider (Args...args)
 Sets a service provider up by calling its testing::setupProvider() More...
 
template<typename Prov >
Prov * SetupProviderFromService (std::string name)
 Sets a service provider up by calling its testing::setupProvider() More...
 
template<typename Prov >
Prov * AcquireProvider (std::unique_ptr< Prov > &&prov)
 Acquires a service provider. More...
 
template<typename Interface , typename Prov , typename... Args>
Prov * SetupProviderFor (Args...args)
 Sets a provider up, recording it as implementation of Interface. More...
 
template<typename Interface , typename Prov >
Prov * SetupProviderFromServiceFor (std::string name)
 Sets a provider up, recording it as implementation of Interface. More...
 
template<typename Interface , typename Prov >
Prov * AcquireProviderFor (std::unique_ptr< Prov > &&prov)
 Acquires a service provider implementing an interface. More...
 
template<typename Prov >
Prov * SimpleProviderSetup ()
 Oversimplified provider setup. More...
 
template<typename Prov >
void DropProvider ()
 Removes and destroys the specified provider. More...
 
template<typename Prov >
Prov const * Provider () const
 Return the specified provider (throws if not available) More...
 
template<typename... Provs>
void FillProviderPack (gar::ProviderPack< Provs... > &pack) const
 Fills the specified provider pack with providers. More...
 
template<typename Prov >
Prov::providers_type ProviderPackFor () const
 Returns a provider pack for the specified provider. More...
 
template<typename Prov , typename... Args>
Prov * SetupProvider (Args &&...args)
 Sets a service provider up by calling its testing::setupProvider() More...
 
template<typename Prov , typename... Args>
Prov * SetupProviderFromService (std::string name, Args &&...args)
 Sets a service provider up by calling its testing::setupProvider() More...
 
template<typename Prov >
Prov * AcquireProvider (std::unique_ptr< Prov > &&prov)
 Acquires a service provider. More...
 
template<typename Interface , typename Prov , typename... Args>
Prov * SetupProviderFor (Args &&...args)
 Sets a provider up, recording it as implementation of Interface. More...
 
template<typename Interface , typename Prov , typename... Args>
Prov * SetupProviderFromServiceFor (std::string name, Args &&...args)
 Sets a provider up, recording it as implementation of Interface. More...
 
template<typename Interface , typename Prov >
Prov * AcquireProviderFor (std::unique_ptr< Prov > &&prov)
 Acquires a service provider implementing an interface. More...
 
template<typename Prov >
Prov * SimpleProviderSetup ()
 Oversimplified provider setup. More...
 
template<typename Prov >
void DropProvider ()
 Removes and destroys the specified provider. More...
 
template<typename Prov >
Prov const * Provider () const
 Return the specified provider (throws if not available) More...
 
template<typename... Provs>
void FillProviderPack (lar::ProviderPack< Provs... > &pack) const
 Fills the specified provider pack with providers. More...
 
template<typename Prov >
Prov::providers_type ProviderPackFor () const
 Returns a provider pack for the specified provider. More...
 
- Private Member Functions inherited from testing::BasicTesterEnvironment< ConfigurationClass >
 BasicTesterEnvironment (bool bSetup=true)
 Constructor: sets everything up and declares the test started. More...
 
virtual ~BasicTesterEnvironment ()
 Destructor: closing remarks. More...
 
 BasicTesterEnvironment (bool bSetup=true)
 Constructor: sets everything up and declares the test started. More...
 
virtual ~BasicTesterEnvironment ()
 Destructor: closing remarks. More...
 
 BasicTesterEnvironment (Configuration_t const &cfg_obj, bool bSetup=true)
 Setup from a configuration. More...
 
 BasicTesterEnvironment (Configuration_t &&cfg_obj, bool bSetup=true)
 
fhicl::ParameterSet const & Parameters () const
 Returns the full configuration. More...
 
fhicl::ParameterSet ServiceParameters (std::string service_name) const
 Returns the configuration of the specified service. More...
 
fhicl::ParameterSet TesterParameters (std::string test_name) const
 Returns the configuration of the specified test. More...
 
fhicl::ParameterSet TesterParameters () const
 Returns the configuration of the main test (undefined if no main test) More...
 
fhicl::ParameterSet const & Parameters () const
 Returns the full configuration. More...
 
fhicl::ParameterSet ServiceParameters (std::string service_name) const
 Returns the configuration of the specified service. More...
 
fhicl::ParameterSet TesterParameters (std::string test_name) const
 Returns the configuration of the specified test. More...
 
fhicl::ParameterSet TesterParameters () const
 Returns the configuration of the main test (undefined if no main test) More...
 
 BasicTesterEnvironment (Configuration_t const &configurer, bool bSetup=true)
 Setup from a configuration. More...
 
 BasicTesterEnvironment (Configuration_t &&configurer, bool bSetup=true)
 
Configuration_t const & Config () const
 Returns a read-only version of the configuration. More...
 
virtual void Configure ()
 Reads and translates the configuration. More...
 
virtual fhicl::ParameterSet DefaultParameters () const
 Creates a full configuration for the test. More...
 
Configuration_t const & Config () const
 Returns a read-only version of the configuration. More...
 
virtual void Configure ()
 Reads and translates the configuration. More...
 
virtual fhicl::ParameterSet DefaultParameters () const
 Creates a full configuration for the test. More...
 
virtual void SetupMessageFacility (fhicl::ParameterSet const &pset, std::string appl_name="") const
 Sets up the message facility. More...
 
virtual void SetupMessageFacility () const
 
virtual void SetupMessageFacility (fhicl::ParameterSet const &pset, std::string appl_name="") const
 Sets up the message facility. More...
 
virtual void SetupMessageFacility () const
 
- Static Private Member Functions inherited from testing::GeometryTesterEnvironment< ConfigurationClass >
static gar::geo::GeometryCore const * GlobalGeometry ()
 
static SharedGeoPtr_t SharedGlobalGeometry ()
 Returns the current global geometry instance (may be nullptr if none) More...
 
static geo::GeometryCore const * GlobalGeometry ()
 
static SharedGeoPtr_t SharedGlobalGeometry ()
 Returns the current global geometry instance (may be nullptr if none) More...
 
- Static Private Member Functions inherited from testing::BasicTesterEnvironment< ConfigurationClass >
static fhicl::ParameterSet CompileParameterSet (std::string cfg)
 Compiles a parameter set from a string. More...
 
static fhicl::ParameterSet CompileParameterSet (std::string cfg)
 
static fhicl::ParameterSet ParseParameters (std::string config_path)
 Fills the test configuration from file or from default. More...
 
static fhicl::ParameterSet ParseParameters (std::string config_path)
 Fills the test configuration from file or from default. More...
 

Detailed Description

Definition at line 66 of file geometry_geoid_test.cxx.

Member Typedef Documentation

Definition at line 69 of file geometry_geoid_test.cxx.

Definition at line 71 of file geometry_geoid_test.cxx.

Constructor & Destructor Documentation

GeometryGeoIDTestFixture::GeometryGeoIDTestFixture ( )
inline

Constructor: initialize the tester with the Geometry from base class.

Definition at line 76 of file geometry_geoid_test.cxx.

77  {
78  // create a new tester
79  tester_ptr = std::make_shared<Tester_t>(TesterParameters());
80  tester_ptr->Setup(*(Provider<geo::GeometryCore>()));
81  // if no tester is default yet, share ours:
82  TesterRegistry_t::ProvideDefaultSharedResource(tester_ptr);
83  }
std::shared_ptr< Tester_t > tester_ptr
our tester (may be shared)
fhicl::ParameterSet TesterParameters() const
Returns the configuration of the main test (undefined if no main test)

Member Function Documentation

static Tester_t& GeometryGeoIDTestFixture::GlobalTester ( )
inlinestatic

Retrieves the global tester.

Definition at line 89 of file geometry_geoid_test.cxx.

89 { return TesterRegistry_t::Resource(); }
Tester_t& GeometryGeoIDTestFixture::Tester ( )
inline

Retrieves the local tester.

Definition at line 86 of file geometry_geoid_test.cxx.

86 { return *(tester_ptr.get()); }
std::shared_ptr< Tester_t > tester_ptr
our tester (may be shared)

Member Data Documentation

std::shared_ptr<Tester_t> GeometryGeoIDTestFixture::tester_ptr
private

our tester (may be shared)

Definition at line 92 of file geometry_geoid_test.cxx.


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