LCOV - code coverage report
Current view: top level - /opt/artdaq/srcs/trace/src_example/userspace - just_recursive.cc (source / functions) Coverage Total Hit
Test: artdaq.info.cleaned Lines: 0.0 % 12 0
Test Date: 2026-10-29 00:35:58 Functions: 0.0 % 2 0

            Line data    Source code
       1              : /* This file (just.cc) was created by Ron Rechenmacher <ron@fnal.gov> on
       2              : // Feb 19, 2014. "TERMS AND CONDITIONS" governing this file are in the README
       3              : // or COPYING file. If you do not have such a file, one can be obtained by
       4              : // contacting Ron or Fermi Lab in Batavia IL, 60510, phone: 630-840-3000.
       5              : // $RCSfile: just.cc,v $
       6              : // rev="$Revision: 1784 $$Date: 2026-10-09 13:51:46 -0500 (Fri, 09 Oct 2026) $";
       7              : */
       8              : /*
       9              : /home/ron/work/tracePrj/trace
      10              : ron@mu2edaq01 :^) just_recursive
      11              : 02-06 12:17:58.697050   TRACE err Completing greeting from sub
      12              : 02-06 12:17:58.697114   TRACE err Completing greeting there lvl=0 from sub
      13              : 02-06 12:17:58.697117   TRACE err Completing greeting there lvl=1 from sub
      14              : 02-06 12:17:58.697119   TRACE err Completing greeting there lvl=2 from sub
      15              : 02-06 12:17:58.697121   TRACE err Completing greeting there lvl=3 from sub
      16              : 02-06 12:17:58.697122   TRACE err Completing greeting there lvl=4 from sub
      17              : 02-06 12:17:58.697124   TRACE err Completing greeting there lvl=5 one
      18              : 02-06 12:17:58.697128   TRACE err Completing greeting from sub
      19              : 02-06 12:17:58.697130   TRACE err Completing greeting there lvl=0 from sub
      20              : 02-06 12:17:58.697132   TRACE err Completing greeting there lvl=1 from sub
      21              : 02-06 12:17:58.697134   TRACE err Completing greeting there lvl=2 two
      22              : 02-06 12:17:58.697137   TRACE err hi there there
      23              : 02-06 12:17:58.697139   TRACE err Completing greeting main
      24              : --2020-02-06_12:17:58--
      25              : */
      26              : #include "TRACE/trace.h"  // TRACE
      27              : 
      28              : #include <string>
      29              : 
      30            0 : std::string example_sub_(const char *msg, int lvl)
      31              : {
      32            0 :         if (lvl--)  // NOLINT
      33            0 :                 TLOG(TLVL_INFO) << "Completing greeting" << example_sub_("from sub", lvl) << " lvl=" << lvl << " " << msg;
      34              :         else
      35            0 :                 TLOG(TLVL_INFO) << "Completing greeting " << msg;
      36            0 :         return " there";
      37              : }
      38              : 
      39            0 : int main(int argc, char *argv[])
      40              : {
      41            0 :         int depth= 1;
      42            0 :         if (argc == 2) depth= (int)strtoul(argv[1], 0, 0);  // NOLINT
      43            0 :         TLOG(TLVL_INFO) << "hi" << example_sub_("zero", 0);
      44            0 :         TLOG(TLVL_INFO) << "hi" << example_sub_("one", depth) << example_sub_("two", depth + 1);
      45            0 :         example_sub_("main", 0);
      46            0 :         return (0);
      47              : }  // main
        

Generated by: LCOV version 2.0-1