Condition Coverage

blib/lib/Net/Prometheus/Metric.pm
Criterion Covered Total %
condition 12 17 70.5


and 3 conditions

line !l l&&!r l&&r condition
127 13 1 0 $_ =~ /^__/u and croak("Label name '${_}' is reserved")
189 29 12 19 @values == 1 and is_hashref($values[0])

or 2 conditions

line l !l condition
117 13 22 $args{'labels'} || []

or 3 conditions

line l !l&&r !l&&!r condition
125 14 1 0 $_ =~ /^[a-zA-Z_][a-zA-Z0-9_]*$/u or croak("Invalid label name '${_}'")
194 21 0 0 defined $href->{$_} or croak("No value for $_ label given")
206 38 1 0 length $values[$_] or croak("Value for $self->{'labels'}[$_] may not empty")