LCOV - code coverage report
Current view: top level - ers/src - OutputStream.cpp (source / functions) Coverage Total Hit
Test: code.result Lines: 81.8 % 11 9
Test Date: 2025-12-21 13:07:08 Functions: 75.0 % 4 3

            Line data    Source code
       1              : /*
       2              :  *  OutputStream.cxx
       3              :  *  ers
       4              :  *
       5              :  *  Created by Serguei Kolos on 01.08.05.
       6              :  *  Copyright 2004 CERN. All rights reserved.
       7              :  *
       8              :  */
       9              : 
      10              : #include <ers/OutputStream.hpp>
      11              : #include <ers/internal/NullStream.hpp>
      12              : 
      13              : 
      14          375 : ers::OutputStream::OutputStream( )
      15          375 : { ; }
      16              : 
      17              : ers::OutputStream &
      18         1076 : ers::OutputStream::chained( )
      19              : {
      20         1076 :     if ( !m_chained.get() )
      21              :     {
      22           54 :         m_chained.reset( new ers::NullStream() );
      23              :     }
      24         1076 :     return *m_chained;
      25              : }
      26              : 
      27              : void
      28           21 : ers::OutputStream::chained( OutputStream * stream )
      29              : {
      30           21 :     m_chained.reset( stream );
      31           21 : }
      32              : 
      33              : bool
      34            0 : ers::OutputStream::isNull() const
      35              : {
      36            0 :     return false;
      37              : }
        

Generated by: LCOV version 2.0-1