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
124 9 1 0 $_ =~ /^__/ and croak("Label name '${_}' is reserved")
191 29 12 3 @values == 1 and XXX

or 2 conditions

line l !l condition
114 9 22 $args{'labels'} || []

or 3 conditions

line l !l&&r !l&&!r condition
122 10 1 0 $_ =~ /^[a-zA-Z_][a-zA-Z0-9_]*$/ or croak("Invalid label name '${_}'")
196 5 0 0 defined $href->{$_} or croak("No value for $_ label given")
208 22 1 0 length $values[$_] or croak("Value for $self->{'labels'}[$_] may not empty")