blib/lib/Mojolicious/Plugin/Statsd/Adapter/Memory.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 14 | 18 | 77.7 |
line | l | !l | condition |
---|---|---|---|
14 | 0 | 5 | $sample_rate // 1 |
20 | 2 | 3 | $stats->{$key} //= {} |
22 | 2 | 3 | $timing->{'samples'} //= 0 |
25 | 2 | 3 | $timing->{'avg'} // 0 |
41 | 0 | 9 | $sample_rate // 1 |
48 | 4 | 7 | $stats->{$name} //= 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
27 | 3 | 2 | 0 | not exists $timing->{'min'} or $timing->{'min'} > $time |
31 | 3 | 0 | 2 | not exists $timing->{'max'} or $timing->{'max'} < $time |