blib/lib/Linux/GetPidstat/Collector/Parser.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 11 | 12 | 91.6 |
line | true | false | branch |
---|---|---|---|
20 | 5 | 135 | unless (defined $metric) |
83 | 1176 | 1341 | unless defined $pid and $pid =~ /^\d+$/ |
86 | 0 | 1341 | unless defined $metric and $metric =~ /^[-+]?[0-9.]+$/ |
87 | 745 | 596 | if (my $cf = $metric_rule->{'convert_func'}) |
91 | 342 | 999 | unless exists $metrics{$pid} |
95 | 5 | 135 | unless %metrics |