Branch Coverage

blib/lib/POE/Component/SmokeBox/Recent/FTP.pm
Criterion Covered Total %
branch 36 56 64.2


line true false branch
16 0 4 unless $opts{'address'}
17 0 4 unless $opts{'path'}
19 4 0 unless $opts{'prefix'}
20 0 4 unless $opts{'prefix'} =~ /\_$/
21 2 2 unless $opts{'username'}
22 2 2 unless $opts{'password'}
26 0 4 ref $options eq 'HASH' ? :
51 0 4 if ($kernel == $sender and not $self->{'session'})
55 0 4 if ($self->{'session'}) { }
56 0 0 if (my $ref = $kernel->alias_resolve($self->{'session'})) { }
79 3 1 if (ip_get_version($self->{'address'}))
89 0 1 if $resp
95 0 1 if ($resp->{'error'} and $resp->{'error'} ne 'NOERROR')
101 0 0 unless $answer->type =~ /^A/
125 0 1 if $self->{'cmdc'}
134 0 33 if $self->{'debug'}
136 12 21 unless $numeric
138 9 12 if ($cmd and $numeric eq $cmd->[0])
139 0 9 if $self->{'debug'}
143 3 9 if ($numeric eq '227')
156 0 9 if ($numeric =~ /^5/)
163 3 6 if ($numeric eq '150')
167 3 6 if ($numeric eq '226')
170 3 6 if ($numeric eq '221')
192 3 0 if ($self->{'transfer'})
202 0 229 if $self->{'debug'}
210 3 3 unless ($self->{'transfer'})
213 0 3 if $self->{'debug'}