Condition Coverage

blib/lib/Metrics/Any/Adapter/Prometheus.pm
Criterion Covered Total %
condition 15 41 36.5


and 3 conditions

line !l l&&!r l&&r condition
116 0 0 0 length $units and not $name =~ /_\Q$units\E$/u
181 4 0 2 length $units and not $name =~ /_\Q$units\E$/u

or 2 conditions

line l !l condition
79 0 2 $args{'use_histograms'} // 1

or 3 conditions

line l !l&&r !l&&!r condition
111 1 0 0 delete $args{'name'} // $handle
112 0 1 0 delete $args{'description'} // "Metrics::Any counter $handle"
134 2 0 0 $self->{'metrics'}{$handle} || croak("No such counter named '${handle}'")
176 6 0 0 delete $args{'name'} // $handle
178 1 5 0 delete $args{'description'} // "Metrics::Any $units distribution $handle"
203 6 0 0 $self->{'metrics'}{$handle} || croak("No such distribution named '${handle}'")
211 1 0 0 delete $args{'name'} // $handle
212 0 1 0 delete $args{'description'} // "Metrics::Any gauge $handle"
225 1 0 0 $self->{'metrics'}{$handle} || croak("No such gauge named '${handle}'")
231 1 0 0 $self->{'metrics'}{$handle} || croak("No such gauge named '${handle}'")
237 0 1 0 $args{'description'} //= "Metrics::Any timer $handle"