Branch Coverage

blib/lib/Net/Connection/Match.pm
Criterion Covered Total %
branch 24 38 63.1


line true false branch
112 2 1 if (defined $_[1])
119 1 2 unless (defined $args{'checks'})
122 0 2 if (ref @{$args{'checks'};} eq 'ARRAY')
126 0 2 unless (defined $args{'checks'}[0])
134 0 2 if (ref %{$args{'checks'}[0];} eq 'HASH')
163 3 0 if (defined $args{'checks'}[$check_int]{'type'}) { }
173 0 3 unless ($type_test =~ /^$/)
178 3 0 if (defined $args{'checks'}[$check_int]{'args'} and ref $args{'checks'}[$check_int]{'args'} eq 'HASH') { }
188 0 3 if (defined $args{'checks'}[$check_int]{'invert'} and ref \$args{'checks'}[$check_int]{'invert'} ne 'SCALAR') { }
3 0 elsif (defined $args{'checks'}[$check_int]{'invert'} and ref \$args{'checks'}[$check_int]{'invert'} eq 'SCALAR') { }
205 0 3 unless (defined $check)
216 2 0 if ($args{'testing'})
241 0 5 unless ($self->errorblank)
245 2 3 if (not defined $conn or ref $conn ne 'Net::Connection')
251 0 2 unless ($self->{'testing'})
268 4 0 if (defined $hit)
270 0 4 if ($check->{'invert'})
275 3 1 if ($hit)
284 2 1 if ($required eq $hits)