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
101 2 1 3 not $opts{'buckets'} and grep {/^bucket/;} keys %opts
110 4 0 1 $opts{'labels'} and &any(sub { $_ eq "le"; } , @{$opts{"labels"};})
195 3 3 0 $value <= $bounds->[$_] and ++$buckets->[$_]

or 2 conditions

line l !l condition
105 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]
131 3 0 $opts->{'bucket_min'} // "0.001"
132 2 1 $opts->{'bucket_max'} // 1000
134 1 2 $opts->{'buckets_per_decade'} // [1]
193 2 0 $self->{'bucketcounts'}{$labelkey} ||= [(0) x (@$bounds + 1)]

or 3 conditions

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