Condition Coverage

blib/lib/Monitor/MetricsAPI/Collector.pm
Criterion Covered Total %
condition 9 27 33.3


and 3 conditions

line !l l&&!r l&&r condition
46 12 0 0 @_ == 1 and ref $_[0] eq 'HASH'
120 0 0 3 defined $addr and $addr =~ /\S+/
122 0 0 3 defined $port and $port ne ''
0 3 0 defined $port and $port ne '' and not $port =~ /^\d+$/
125 0 0 3 defined $port and $port ne ''
216 0 0 1 defined $metrics and ref $metrics eq 'HASH'
256 0 0 1 defined $name and defined $type
261 0 1 0 $type eq 'callback' and !defined($callback) || ref $callback ne 'CODE'

or 3 conditions

line l !l&&r !l&&!r condition
261 0 0 1 !defined($callback) || ref $callback ne 'CODE'