| blib/lib/Net/Prometheus/Histogram.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 19 | 22 | 86.3 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 100 | 2 | 2 | 3 | not $opts{'buckets'} and grep {/^bucket/u;} keys %opts |
| 110 | 4 | 1 | 1 | $opts{'labels'} and &any(sub { $_ eq "le"; } , @{$opts{"labels"}}) |
| 188 | 33 | 15 | 0 | $value <= $bounds->[$_] and ++$buckets->[$_] |
| line | l | !l | condition |
|---|---|---|---|
| 104 | 5 | 2 | $opts{'buckets'} || [0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1.0, 2.5, 5.0, 7.5, 10] |
| 128 | 3 | 0 | $opts->{'bucket_min'} // "0.001" |
| 129 | 2 | 1 | $opts->{'bucket_max'} // 1000 |
| 131 | 1 | 2 | $opts->{'buckets_per_decade'} // [1] |
| 186 | 2 | 3 | $self->{'bucketcounts'}{$labelkey} ||= [(0) x (@$bounds + 1)] |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 107 | 58 | 1 | 0 | $buckets->[$_] > $$buckets[$_ - 1] or croak("Histogram bucket limits must be monotonically-increasing") |