LCOV - code coverage report
Current view: top level - confmodel/src - test_circular_dependency.cpp (source / functions) Coverage Total Hit
Test: code.result Lines: 40.0 % 10 4
Test Date: 2025-12-21 13:07:08 Functions: 100.0 % 1 1

            Line data    Source code
       1              : #include "conffwk/DalObject.hpp"
       2              : #include "confmodel/confmodelIssues.hpp"
       3              : #include "confmodel/test_circular_dependency.hpp"
       4              : 
       5              : void
       6           74 : dunedaq::confmodel::TestCircularDependency::push(const dunedaq::conffwk::DalObject * object)
       7              : {
       8           74 :   if(p_index < p_limit) {
       9           74 :     p_objects[p_index++] = object;
      10              :   }
      11              :   else {
      12            0 :     std::ostringstream s;
      13            0 :     for(unsigned int i = 0; i < p_index; ++i) {
      14            0 :       if(i != 0) s << ", ";
      15            0 :       s << p_objects[i];
      16              :     }
      17              : 
      18            0 :     throw dunedaq::confmodel::FoundCircularDependency(ERS_HERE, p_limit, p_goal, s.str());
      19            0 :   }
      20           74 : }
        

Generated by: LCOV version 2.0-1