LCOV - code coverage report
Current view: top level - proto - fhicl_test.cc (source / functions) Coverage Total Hit
Test: artdaq.info.cleaned Lines: 0.0 % 13 0
Test Date: 2025-09-04 00:45:34 Functions: 0.0 % 1 0

            Line data    Source code
       1              : // Show that the string representation of numbers in fhicl is not what you'd expect.
       2              : 
       3              : #include "fhiclcpp/ParameterSet.h"
       4              : 
       5              : #include <iomanip>
       6              : #include <iostream>
       7              : #include "artdaq/Application/LoadParameterSet.hh"
       8              : 
       9            0 : int main(int argc, char* argv[])
      10              : try
      11              : {
      12              :         struct Config
      13              :         {};
      14            0 :         auto pset = LoadParameterSet<Config>(argc, argv, "test_fhicl", "A test application to ensure that FHiCL numeric values are converted properly to/from hexadecimal values");
      15              : 
      16            0 :         for (auto& p : pset.get_all_keys())
      17              :         {
      18            0 :                 std::cout << "Key " << p << " has string value " << pset.get<std::string>(p)
      19            0 :                           << " and uint64_t value " << pset.get<uint64_t>(p)
      20            0 :                           << " ( hex 0x" << std::hex << pset.get<uint64_t>(p) << " )."
      21            0 :                           << std::endl;
      22            0 :         }
      23              : 
      24            0 :         return 0;
      25            0 : }
      26            0 : catch (...)
      27              : {
      28            0 :         return -1;
      29            0 : }
        

Generated by: LCOV version 2.0-1