Branch Coverage

blib/lib/POE/Component/SmokeBox/Recent.pm
Criterion Covered Total %
branch 46 64 71.8


line true false branch
17 0 6 unless $opts{'url'}
18 0 6 unless $opts{'event'}
19 4 2 unless $opts{'rss'}
25 0 6 unless $self->{'uri'}->scheme and $self->{'uri'}->scheme =~ /^(ht|f)tp|file$/
26 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'})) { }
65 1 5 if ($self->{'epoch'})
77 6 0 if $self->{'recent'}
78 0 6 if $self->{'error'}
79 6 0 if $self->{'context'}
90 1 2 $self->{'rss'} ? :
100 3 0 if ($response->code == 200) { }
101 1 2 if ($self->{'rss'}) { }
103 56 7 unless m[(.+?)]i
104 1 6 unless /by-authors/i
106 0 6 unless $link
112 6 54 unless /^authors/
113 43 11 unless /\.(tar\.gz|tgz|tar\.bz2|zip)$/
128 1 1 $self->{'rss'} ? :
156 127 2707 if ($self->{'rss'}) { }
0 2707 elsif ($self->{'epoch'}) { }
157 120 7 unless $data =~ m[(.+?)]i
158 1 6 unless $data =~ /by-authors/i
160 0 6 unless $link
167 1410 1297 unless $data =~ /^authors/i
168 900 397 unless $data =~ /\.(tar\.gz|tgz|tar\.bz2|zip)$/
186 1 0 unless $segs[-1]
193 0 0 unless open my $fh, '<', $path
227 1 1 if $self->{'_epoch_fail'}
236 1 1 unless $self->{'_epoch_fail'}