Branch Coverage

blib/lib/POE/Component/SmokeBox/Recent/HTTP.pm
Criterion Covered Total %
branch 14 28 50.0


line true false branch
21 0 6 unless $opts{'uri'} and $opts{'uri'}->isa('URI') and $opts{'uri'}->scheme and $opts{'uri'}->scheme =~ /^http$/ and $opts{'uri'}->host
23 6 0 unless $opts{'prefix'}
24 0 6 unless $opts{'prefix'} =~ /\_$/
28 0 6 ref $options eq 'HASH' ? :
47 0 6 if ($kernel == $sender and not $self->{'session'})
51 0 6 if ($self->{'session'}) { }
52 0 0 if (my $ref = $kernel->alias_resolve($self->{'session'})) { }
78 5 1 if (ip_get_version($self->{'address'}))
88 0 1 if $resp
94 1 0 if ($resp->{'error'} and $resp->{'error'} ne 'NOERROR')
100 0 0 unless $answer->type =~ /^A/
124 5 0 $self->{'port'} ne '80' ? :
172 1 1 if $self->{'web'}
173 2 0 if $self->{'_resolver'}