LCOV - code coverage report
Current view: top level - trgdataformats/pybindsrc - types.cpp (source / functions) Coverage Total Hit
Test: code.result Lines: 0.0 % 7 0
Test Date: 2026-10-11 15:05:20 Functions: 0.0 % 1 0

            Line data    Source code
       1              : /**
       2              :  * @file types.cpp Python bindings for common trgdataformats scalar aliases/constants
       3              :  *
       4              :  * This is part of the DUNE DAQ Software Suite, copyright 2020.
       5              :  * Licensing/copyright details are in the COPYING file that you should have
       6              :  * received with this code.
       7              :  */
       8              : 
       9              : #include "trgdataformats/Types.hpp"
      10              : 
      11              : #include <pybind11/pybind11.h>
      12              : 
      13              : namespace py = pybind11;
      14              : 
      15              : namespace dunedaq::trgdataformats::python {
      16              : 
      17              : void
      18            0 : register_types(py::module& m)
      19              : {
      20            0 :   py::class_<TypeDefaults>(m, "TypeDefaults")
      21            0 :     .def_property_readonly_static("s_invalid_timestamp", [](py::object /*self*/) { return TypeDefaults::s_invalid_timestamp; })
      22            0 :     .def_property_readonly_static("s_invalid_detid", [](py::object /*self*/) { return TypeDefaults::s_invalid_detid; })
      23            0 :     .def_property_readonly_static("s_invalid_trigger_number", [](py::object /*self*/) { return TypeDefaults::s_invalid_trigger_number; });
      24              : 
      25            0 :   m.attr("g_whole_detector") = py::int_(g_whole_detector);
      26            0 : }
      27              : 
      28              : } // namespace dunedaq::trgdataformats::python
        

Generated by: LCOV version 2.0-1