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
131 0 0 0 length $units and not $name =~ /_\Q$units\E$/u
202 4 0 2 length $units and not $name =~ /_\Q$units\E$/u

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
126 1 0 0 delete $args{'name'} // $handle
127 0 1 0 delete $args{'description'} // "Metrics::Any counter $handle"
152 2 0 0 $self->{'metrics'}{$handle} || croak("No such counter named '${handle}'")
197 6 0 0 delete $args{'name'} // $handle
199 1 5 0 delete $args{'description'} // "Metrics::Any $units distribution $handle"
227 6 0 0 $self->{'metrics'}{$handle} || croak("No such distribution named '${handle}'")
238 1 0 0 delete $args{'name'} // $handle
239 0 1 0 delete $args{'description'} // "Metrics::Any gauge $handle"
255 1 0 0 $self->{'metrics'}{$handle} || croak("No such gauge named '${handle}'")
264 1 0 0 $self->{'metrics'}{$handle} || croak("No such gauge named '${handle}'")
273 0 1 0 $args{'description'} //= "Metrics::Any timer $handle"