Condition Coverage

blib/lib/Net/Prometheus/Histogram.pm
Criterion Covered Total %
condition 17 22 77.2


and 3 conditions

line !l l&&!r l&&r condition
100 2 1 3 not $opts{'buckets'} and grep {/^bucket/;} keys %opts
109 4 0 1 $opts{'labels'} and &any(sub { $_ eq 'le'; } , @{$opts{'labels'};})
194 3 3 0 $value <= $bounds->[$_] and ++$buckets->[$_]

or 2 conditions

line l !l condition
104 5 1 $opts{'buckets'} || [0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10]
130 3 0 $opts->{'bucket_min'} // 0.001
131 2 1 $opts->{'bucket_max'} // 1000
133 1 2 $opts->{'buckets_per_decade'} // [1]
192 2 0 $self->{'bucketcounts'}{$labelkey} ||= [(0) x (@$bounds + 1)]

or 3 conditions

line l !l&&r !l&&!r condition
107 45 1 0 $buckets->[$_] > $$buckets[$_ - 1] or croak('Histogram bucket limits must be monotonically-increasing')