Coverage Report

Statementstmt 96.8% 369 / 381 Branchbran 86.8% 99 / 114 Conditioncond 69.3% 34 / 49 MC/DCmcdc 50.0% 15 / 30 Subroutinesub 97.4% 75 / 77 Podpod 5.8% 1 / 17 totaltotal 88.7% 593 / 668 CC 80 scar 16.5 CC 80 · cov 92% · CRAP 5.2

Top SCAR

blib/lib/Linux/GetPidstat/Writer/Mackerel.pm 20.9
CC
19
Cov
85%
bulk_output
15.0
output
8.0
new
2.0
CRAP 8.1
blib/lib/Linux/GetPidstat.pm 19.2
CC
15
Cov
92%
_validate_args
12.2
run
4.0
BEGIN
1.0
CRAP 6.9
blib/lib/Linux/GetPidstat/Collector/Parser.pm 15.6
CC
11
Cov
96%
_get_metric_mean
9.1
parse
3.0
BEGIN
1.0
CRAP 4.7
blib/lib/Linux/GetPidstat/Reader.pm 15.3
CC
13
Cov
96%
search_child_pids
9.0
get_program_pid_mapping
4.0
_command_search_child_pids
2.0
CRAP 4.6
blib/lib/Linux/GetPidstat/Writer.pm 13.9
CC
7
Cov
96%
output
7.0
BEGIN
1.0
BEGIN
1.0
CRAP 4.0
3 3 files 75-90%
4 4 files 90-100%
1 1 file 100%
< 75% 75-90% 90-100% at 100%
File Statementstmt Branchbran Conditioncond MC/DCmcdc Subroutinesub Podpod totaltotal CC SCAR
(root) 100 4 / 4n/a n/a n/a 100 1 / 1n/a 100 5 / 51 0.0
CC
1
Cov
100%
CRAP 1.0
Build 100 4 / 4n/a n/a n/a 100 1 / 1n/a 100 5 / 51 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
blib/lib/Linux 98.3 59 / 6088.8 16 / 1873.3 11 / 1555.5 5 / 9100 11 / 1150.0 1 / 289.5 103 / 11515 19.2
CC
15
Cov
92%
CRAP 6.9
GetPidstat.pm 98.3 59 / 6088.8 16 / 1873.3 11 / 1555.5 5 / 9100 11 / 1150.0 1 / 289.5 103 / 11515 19.2
CC
15
Cov
92%
_validate_args
12.2
run
4.0
BEGIN
1.0
CRAP 6.9
blib/lib/Linux/GetPidstat 97.5 161 / 16590.3 47 / 5272.2 13 / 1854.5 6 / 1194.2 33 / 350.0 0 / 989.6 260 / 29037 14.0
CC
37
Cov
94%
CRAP 4.1
Reader.pm 96.7 60 / 62100 16 / 1683.3 5 / 675.0 3 / 491.6 11 / 120.0 0 / 392.2 95 / 10313 15.3
CC
13
Cov
96%
search_child_pids
9.0
get_program_pid_mapping
4.0
_command_search_child_pids
2.0
CRAP 4.6
Writer.pm 100 33 / 3383.3 10 / 12n/a n/a 100 8 / 80.0 0 / 292.7 51 / 557 13.9
CC
7
Cov
96%
output
7.0
BEGIN
1.0
BEGIN
1.0
CRAP 4.0
Collector.pm 97.1 68 / 7087.5 21 / 2466.6 8 / 1242.8 3 / 793.3 14 / 150.0 0 / 486.3 114 / 13219 13.0
CC
19
Cov
92%
__ANON__
7.1
get_pidstat
4.1
get_pidstats_results
4.0
CRAP 3.7
blib/lib/Linux/GetPidstat/Collector 100 49 / 4992.8 13 / 1466.6 4 / 650.0 2 / 4100 11 / 110.0 0 / 192.9 79 / 8511 15.6
CC
11
Cov
96%
CRAP 4.7
Parser.pm 100 49 / 4992.8 13 / 1466.6 4 / 650.0 2 / 4100 11 / 110.0 0 / 192.9 79 / 8511 15.6
CC
11
Cov
96%
_get_metric_mean
9.1
parse
3.0
BEGIN
1.0
CRAP 4.7
blib/lib/Linux/GetPidstat/Writer 93.2 96 / 10376.6 23 / 3060.0 6 / 1033.3 2 / 6100 19 / 190.0 0 / 584.3 146 / 17320 18.9
CC
20
Cov
87%
CRAP 6.6
Mackerel.pm 91.1 72 / 7975.0 21 / 2860.0 6 / 1033.3 2 / 6100 12 / 120.0 0 / 381.8 113 / 13819 20.9
CC
19
Cov
85%
bulk_output
15.0
output
8.0
new
2.0
CRAP 8.1
File.pm 100 24 / 24100 2 / 2n/a n/a 100 7 / 70.0 0 / 294.2 33 / 352 2.2
CC
2
Cov
100%
output
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2