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

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
81 1 0 0 delete $args{'name'} // $handle
82 0 1 0 delete $args{'description'} // "Metrics::Any counter $handle"
107 1 0 0 $self->{'metrics'}{$handle} || croak("No such counter named '${handle}'")
152 6 0 0 delete $args{'name'} // $handle
154 1 5 0 delete $args{'description'} // "Metrics::Any $units distribution $handle"
182 6 0 0 $self->{'metrics'}{$handle} || croak("No such distribution named '${handle}'")
193 1 0 0 delete $args{'name'} // $handle
194 0 1 0 delete $args{'description'} // "Metrics::Any gauge $handle"
210 1 0 0 $self->{'metrics'}{$handle} || croak("No such gauge named '${handle}'")
219 1 0 0 $self->{'metrics'}{$handle} || croak("No such gauge named '${handle}'")
228 0 1 0 $args{'description'} //= "Metrics::Any timer $handle"