DoNothingInput_source.cc
Go to the documentation of this file.
1 // ------------------------------------------------------------
2 //
3 // The purpose of 'DoNothingInput' is to verify that when the
4 // destructor is called, the art::ServiceHandle can be constructed
5 // successfully and not throw. This tests the expected behavior of
6 // the art::EventProcessor constructor.
7 //
8 // ------------------------------------------------------------
9 
13 
15 
16 #include <memory>
17 
18 namespace art {
19  class FileBlock;
20  class ProductRegistryHelper;
21  class SourceHelper;
22 } // namespace art
23 
24 namespace fhicl {
25  class ParameterSet;
26 }
27 
28 namespace art {
29  namespace test {
30 
32  public:
35  SourceHelper const&)
36  {}
37 
38  ~DoNothingInput() { ServiceHandle<Wanted> shouldNotThrow[[gnu::unused]]; }
39 
40  void
42  {}
43 
44  void
46  {}
47 
48  bool
49  readNext(RunPrincipal const* const,
50  SubRunPrincipal const* const,
51  RunPrincipal*&,
54  {
55  return false;
56  }
57  };
58 
59  } // namespace test
60 } // namespace art
61 
std::string string
Definition: nybbler.cc:12
DoNothingInput(fhicl::ParameterSet const &, ProductRegistryHelper &, SourceHelper const &)
Definition: test.py:1
bool readNext(RunPrincipal const *const, SubRunPrincipal const *const, RunPrincipal *&, SubRunPrincipal *&, EventPrincipal *&)
void readFile(std::string const &, art::FileBlock *&)
parameter set interface
#define DEFINE_ART_INPUT_SOURCE(klass)