Coverage Report

Statementstmt 94.9% 712 / 750 Branchbran 85.4% 270 / 316 Conditioncond 73.9% 128 / 173 MC/DCmcdc 51.4% 52 / 101 Subroutinesub 94.8% 128 / 135 Podpod 65.9% 31 / 47 totaltotal 86.7% 1321 / 1522 CC 236 scar 21.4 CC 236 · cov 90% · CRAP 8.5
Prefix: blib/lib/Nagios/Monitoring/

Top SCAR

Plugin/Functions.pm 27.4
CC
68
Cov
82%
max_state_alt
42.0
nagios_exit
26.1
check_messages
18.2
CRAP 15.5
Plugin/Config.pm 25.0
CC
18
Cov
75%
read
21.1
read_string
8.3
write
2.0
CRAP 12.2
Plugin/Range.pm 20.1
CC
29
Cov
96%
check_range
12.2
parse_range_string
12.0
_stringify
6.0
CRAP 7.5
Plugin/Getopt.pm 19.5
CC
69
Cov
91%
_cmdline
15.1
_options
14.0
_spec_to_help
7.0
CRAP 7.1
Plugin/Threshold.pm 15.5
CC
15
Cov
97%
get_status
8.0
_inflate
6.0
set_thresholds
3.0
CRAP 4.7
4 4 files 75-90%
4 4 files 90-100%
< 75% 75-90% 90-100% at 100%
File Statementstmt Branchbran Conditioncond MC/DCmcdc Subroutinesub Podpod totaltotal CC SCAR
(root) 96.8 93 / 9687.5 28 / 3276.4 13 / 1760.0 6 / 1090.9 20 / 2285.7 12 / 1490.0 172 / 19124 14.3
CC
24
Cov
92%
CRAP 4.2
Plugin.pm 96.8 93 / 9687.5 28 / 3276.4 13 / 1760.0 6 / 1090.9 20 / 2285.7 12 / 1490.0 172 / 19124 14.3
CC
24
Cov
92%
check_threshold
8.1
add_message
7.0
check_messages
6.1
CRAP 4.2
Plugin 94.6 619 / 65485.2 242 / 28473.7 115 / 15650.5 46 / 9195.5 108 / 11357.5 19 / 3386.3 1149 / 1331213 22.1
CC
213
Cov
89%
CRAP 9.1
Functions.pm 85.7 126 / 14779.5 70 / 8875.7 50 / 6652.6 20 / 3886.3 19 / 2275.0 6 / 878.8 291 / 36968 27.4
CC
68
Cov
82%
max_state_alt
42.0
nagios_exit
26.1
check_messages
18.2
CRAP 15.5
Config.pm 85.4 47 / 5554.1 13 / 2450.0 1 / 20.0 0 / 187.5 7 / 875.0 3 / 475.5 71 / 9418 25.0
CC
18
Cov
75%
read
21.1
read_string
8.3
write
2.0
CRAP 12.2
Range.pm 98.8 82 / 8397.5 39 / 4083.3 20 / 2471.4 10 / 14100 18 / 1825.0 1 / 492.9 170 / 18329 20.1
CC
29
Cov
96%
check_range
12.2
parse_range_string
12.0
_stringify
6.0
CRAP 7.5
Getopt.pm 98.1 214 / 21888.6 78 / 8863.6 28 / 4433.3 9 / 27100 29 / 2933.3 1 / 387.7 359 / 40969 19.5
CC
69
Cov
91%
_cmdline
15.1
_options
14.0
_spec_to_help
7.0
CRAP 7.1
Threshold.pm 100 47 / 4790.9 20 / 22n/a n/a 100 11 / 1150.0 2 / 495.2 80 / 8415 15.5
CC
15
Cov
97%
get_status
8.0
_inflate
6.0
set_thresholds
3.0
CRAP 4.7
Performance.pm 100 91 / 91100 22 / 2280.0 16 / 2063.6 7 / 11100 18 / 18100 6 / 695.2 160 / 16819 12.2
CC
19
Cov
97%
_parse
7.0
parse_perfstring
5.0
new
4.0
CRAP 3.4
ExitResult.pm 92.3 12 / 13n/a n/a n/a 85.7 6 / 70.0 0 / 475.0 18 / 241 1.3
CC
1
Cov
92%
code
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1