LCOV - code coverage report
Current view: top level - detchannelmaps/test/plugins - DummyTPCChannelMap.cpp (source / functions) Coverage Total Hit
Test: code.result Lines: 0.0 % 9 0
Test Date: 2026-10-11 15:05:20 Functions: 0.0 % 7 0

            Line data    Source code
       1              : /**
       2              :  * @file DummyModule.hpp
       3              :  *
       4              :  * DummyModule is a simple ChannelMap implementation that responds to a "stuff" command with a log message.
       5              :  *
       6              :  * This is part of the DUNE DAQ Application Framework, copyright 2020.
       7              :  * Licensing/copyright details are in the COPYING file that you should have
       8              :  * received with this code.
       9              :  */
      10              : 
      11              : #ifndef DETCHANNELMAPS_TEST_PLUGINS_DummyTPCChannelMap_HPP_
      12              : #define DETCHANNELMAPS_TEST_PLUGINS_DummyTPCChannelMap_HPP_
      13              : 
      14              : #include "detchannelmaps/TPCChannelMap.hpp"
      15              : 
      16              : #include "ers/Issue.hpp"
      17              : #include "logging/Logging.hpp" // NOTE: if ISSUES ARE DECLARED BEFORE include logging/Logging.hpp, TLOG_DEBUG<<issue wont work.
      18              : 
      19              : #include <string>
      20              : #include <vector>
      21              : 
      22              : namespace dunedaq {
      23              : 
      24              : // Disable coverage collection LCOV_EXCL_START
      25              : // ERS_DECLARE_ISSUE_BASE(detchannelmaps,
      26              : //                        DummyModuleUpdate,
      27              : //                        detchannelmaps::GeneralChannelMapIssue,
      28              : //                        message,
      29              : //                        ((std::string)name),
      30              : //                        ((std::string)message))
      31              : // Re-enable coverage collection LCOV_EXCL_STOP
      32              : 
      33              : namespace detchannelmaps {
      34              : 
      35              : class DummyTPCChannelMap : public TPCChannelMap
      36              : {
      37              : public:
      38            0 :   explicit DummyTPCChannelMap() {}
      39              :   DummyTPCChannelMap(const DummyTPCChannelMap&) = delete;            ///< DummyTPCChannelMap is not copy-constructible
      40              :   DummyTPCChannelMap& operator=(const DummyTPCChannelMap&) = delete; ///< DummyTPCChannelMap is not copy-assignable
      41              :   DummyTPCChannelMap(DummyTPCChannelMap&&) = delete;                 ///< DummyTPCChannelMap is not move-constructible
      42              :   DummyTPCChannelMap& operator=(DummyTPCChannelMap&&) = delete;      ///< DummyTPCChannelMap is not move-assignable
      43              : 
      44            0 :   uint get_offline_channel_from_det_crate_slot_stream_chan(uint /*det*/,
      45              :                                                            uint /*crate*/,
      46              :                                                            uint /*slot*/,
      47              :                                                            uint /*stream*/,
      48              :                                                            uint /*fembchannel*/) final
      49              :   {
      50            0 :     return 5678;
      51              :   }
      52              : 
      53            0 :   uint get_plane_from_offline_channel(uint /*offchannel*/) final { return 2; }
      54              : 
      55            0 :   uint get_element_id_from_offline_channel(uint /*offchannel*/) final { return 0; }
      56              : 
      57            0 :   std::string get_element_name_from_offline_channel(uint /*offchannel*/) final { return "Dummy0"; }
      58              : 
      59            0 :   std::optional<TPCChannelInfo> get_channel_info_from_offline_channel(uint offchannel)
      60              :   {
      61            0 :     return TPCChannelInfo{ 1, 2, 3, 4, 5, 6 };
      62              :   }
      63              : };
      64              : 
      65              : } // namespace detchannelmaps
      66              : } // namespace dunedaq
      67              : 
      68              : #endif // DETCHANNELMAPS_TEST_PLUGINS_DummyTPCChannelMap_HPP_
      69              : 
      70            0 : DEFINE_DUNE_DET_TPCCHANNEL_MAP(dunedaq::detchannelmaps::DummyTPCChannelMap)
        

Generated by: LCOV version 2.0-1