Branch Coverage

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


line true false branch
111 2 1 if (defined $_[1])
118 1 2 unless (defined $args{'checks'})
121 0 2 if (ref @{$args{'checks'};} eq 'ARRAY')
125 0 2 unless (defined $args{'checks'}[0])
128 0 2 if (ref %{$args{'checks'}[0];} eq 'HASH')
160 3 0 if (defined $args{'checks'}[$check_int]{'type'}) { }
170 0 3 unless ($type_test =~ /^$/)
175 3 0 if (defined $args{'checks'}[$check_int]{'args'} and ref $args{'checks'}[$check_int]{'args'} eq 'HASH') { }
185 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') { }
202 0 3 unless (defined $check)
213 2 0 if ($args{'testing'})
238 0 5 unless ($self->errorblank)
242 2 3 if (not defined $conn or ref $conn ne 'Net::Connection')
248 0 2 unless ($self->{'testing'})
265 4 0 if (defined $hit)
267 0 4 if ($check->{'invert'})
272 3 1 if ($hit)
281 2 1 if ($required eq $hits)