LCOV - code coverage report
Current view: top level - /opt/artdaq/srcs/artdaq-mfextensions/ErrorHandler/MessageAnalyzer - ma_test_function.cpp (source / functions) Coverage Total Hit
Test: artdaq.info.cleaned Lines: 0.0 % 8 0
Test Date: 2025-09-04 00:45:34 Functions: 0.0 % 2 0

            Line data    Source code
       1              : #include "ErrorHandler/MessageAnalyzer/ma_test_function.h"
       2              : 
       3              : using namespace novadaq::errorhandler;
       4              : 
       5            0 : void ma_test_function_factory::reg(std::string const& func_name, gen_test_t f)
       6              : {
       7            0 :         get_map().insert(std::make_pair(func_name, f));
       8            0 : }
       9              : 
      10              : ma_test_function*
      11            0 : ma_test_function_factory::create_instance(std::string const& func_name)
      12              : {
      13            0 :         gen_map_t::iterator it = get_map().find(func_name);
      14              : 
      15            0 :         if (it != get_map().end())
      16            0 :                 return it->second();
      17              : 
      18            0 :         throw std::runtime_error("unknown test function name");
      19              : }
        

Generated by: LCOV version 2.0-1