GCC Code Coverage Report


Directory: ./
File: src/util/gsl-integration.cc
Date: 2025-09-01 06:19:01
Exec Total Coverage
Lines: 0 11 0.0%
Functions: 0 3 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 #include "na64util/gsl-integration.hh"
2
3 #include <gsl/gsl_errno.h>
4
5 namespace na64dp {
6 namespace errors {
7
8 GSLError::GSLError( int gslErrorCode_
9 , const char * msg )
10 : GenericRuntimeError(msg)
11 , gslErrorCode(gslErrorCode_)
12 {}
13
14 GSLError::GSLError( int gslErrorCode_ )
15 : GenericRuntimeError( util::format("GSL error: (%d) \"%s\""
16 , gslErrorCode_
17 , gsl_strerror(gslErrorCode_)
18 ).c_str() )
19 , gslErrorCode(gslErrorCode_)
20 {}
21
22 void
23 GSLError::na64sw_gsl_error_handler( const char * reason
24 , const char * file
25 , int line
26 , int gslErrNo ) {
27 throw GSLError( gslErrNo
28 , util::format("GSL error at %s:%d: (%d) \"%s\","
29 " reason: \"%s\"", file, line, gslErrNo
30 , gsl_strerror(gslErrNo)
31 , reason ).c_str() );
32 }
33
34 } // namespace ::na64dp::errors
35 } // namespace na64dp
36
37