LCOV - code coverage report
Current view: top level - ers/plugins - ExitStream.cpp (source / functions) Coverage Total Hit
Test: code.result Lines: 12.5 % 8 1
Test Date: 2026-02-16 10:18:04 Functions: 25.0 % 4 1

            Line data    Source code
       1              : /*
       2              :  *  ExitStream.cxx
       3              :  *  ers
       4              :  *
       5              :  *  Created by Serguei Kolos on 02.08.05.
       6              :  *  Copyright 2004 CERN. All rights reserved.
       7              :  *
       8              :  */
       9              : 
      10              : #include <ers/internal/ExitStream.hpp>
      11              : #include <stdlib.h>
      12              : 
      13           41 : ERS_REGISTER_OUTPUT_STREAM( ers::ExitStream, "exit", exit_code )
      14              : 
      15            0 : ers::ExitStream::ExitStream( const std::string & exit_code )
      16            0 :   : m_exit_code( 1 )
      17              : {
      18            0 :     std::istringstream in( exit_code );
      19            0 :     in >> m_exit_code;
      20            0 : }
      21              : 
      22            0 : void ers::ExitStream::write( const Issue & )
      23              : {
      24            0 :     ::exit( m_exit_code );
      25              : }
      26              : 
        

Generated by: LCOV version 2.0-1