All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Types | Private Attributes | List of all members
GeometryIteratorTestFixture Class Reference
Inheritance diagram for GeometryIteratorTestFixture:
testing::GeometryTesterEnvironment< StandardGeometryConfiguration >

Public Member Functions

 GeometryIteratorTestFixture ()
 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::GeometryIteratorTestAlg
 
using TesterRegistry_t = testing::TestSharedGlobalResource< Tester_t >
 
- Private Types inherited from testing::GeometryTesterEnvironment< StandardGeometryConfiguration >
using SharedGeoPtr_t = GeoResources_t::ResourcePtr_t
 
using ChannelMapClass = typename StandardGeometryConfiguration::ChannelMapClass
 
- Private Types inherited from testing::BasicTesterEnvironment< StandardGeometryConfiguration >
using Configuration_t = StandardGeometryConfiguration
 

Private Attributes

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

Additional Inherited Members

- Private Member Functions inherited from testing::GeometryTesterEnvironment< StandardGeometryConfiguration >
 GeometryTesterEnvironment (bool bSetup=true)
 Constructor: sets everything up and declares the test started. More...
 
virtual ~GeometryTesterEnvironment ()
 Destructor: closing remarks. More...
 
 GeometryTesterEnvironment (StandardGeometryConfigurationconst &cfg_obj, bool bSetup=true)
 Setup from a configuration. More...
 
 GeometryTesterEnvironment (StandardGeometryConfiguration &&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
< geo::GeometryCore
CreateNewGeometry () 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 (geo::GeometryCore const *new_geom)
 
- Private Member Functions inherited from testing::TesterEnvironment< StandardGeometryConfiguration >
Prov * SetupProvider (Args &&...args)
 Sets a service provider up by calling its testing::setupProvider() More...
 
Prov * SetupProviderFromService (std::string name, Args &&...args)
 Sets a service provider up by calling its testing::setupProvider() More...
 
Prov * AcquireProvider (std::unique_ptr< Prov > &&prov)
 Acquires a service provider. More...
 
Prov * SetupProviderFor (Args &&...args)
 Sets a provider up, recording it as implementation of Interface. More...
 
Prov * SetupProviderFromServiceFor (std::string name, Args &&...args)
 Sets a provider up, recording it as implementation of Interface. More...
 
Prov * AcquireProviderFor (std::unique_ptr< Prov > &&prov)
 Acquires a service provider implementing an interface. More...
 
Prov * SimpleProviderSetup ()
 Oversimplified provider setup. More...
 
void DropProvider ()
 Removes and destroys the specified provider. More...
 
Prov const * Provider () const
 Return the specified provider (throws if not available) More...
 
void FillProviderPack (lar::ProviderPack< Provs...> &pack) const
 Fills the specified provider pack with providers. More...
 
Prov::providers_type ProviderPackFor () const
 Returns a provider pack for the specified provider. More...
 
- Private Member Functions inherited from testing::BasicTesterEnvironment< StandardGeometryConfiguration >
 BasicTesterEnvironment (bool bSetup=true)
 Constructor: sets everything up and declares the test started. More...
 
virtual ~BasicTesterEnvironment ()
 Destructor: closing remarks. More...
 
 BasicTesterEnvironment (Configuration_t const &configurer, bool bSetup=true)
 Setup from a configuration. More...
 
 BasicTesterEnvironment (Configuration_t &&configurer, 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...
 
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
 
- Static Private Member Functions inherited from testing::GeometryTesterEnvironment< StandardGeometryConfiguration >
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< StandardGeometryConfiguration >
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...
 

Detailed Description

Definition at line 66 of file geometry_iterator_test.cxx.

Member Typedef Documentation

Definition at line 69 of file geometry_iterator_test.cxx.

Definition at line 71 of file geometry_iterator_test.cxx.

Constructor & Destructor Documentation

GeometryIteratorTestFixture::GeometryIteratorTestFixture ( )
inline

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

Definition at line 76 of file geometry_iterator_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:
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)
static ResourcePtr_t ProvideDefaultSharedResource(ResourcePtr_t res_ptr)
Creates a shared resource as default only if none exists yet.

Member Function Documentation

static Tester_t& GeometryIteratorTestFixture::GlobalTester ( )
inlinestatic

Retrieves the global tester.

Definition at line 89 of file geometry_iterator_test.cxx.

89 { return TesterRegistry_t::Resource(); }
static Resource_t & Resource(std::string name="")
Retrieves the specified resource, or throws if not available.
Tester_t& GeometryIteratorTestFixture::Tester ( )
inline

Retrieves the local tester.

Definition at line 86 of file geometry_iterator_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> GeometryIteratorTestFixture::tester_ptr
private

our tester (may be shared)

Definition at line 92 of file geometry_iterator_test.cxx.


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