Branch Coverage

blib/lib/Bootylicious/Plugin/BootyHelpers.pm
Criterion Covered Total %
branch 27 44 61.3


line true false branch
21 11 0 unless $self->res->code
38 3 0 if ($content =~ s/^(.*?)\n$cuttag(?: (.*?))?(?:\n|\r|\n\r)//s)
52 3 0 if $preview
70 1 0 if ($head =~ s/(.*?)\n$cuttag.*?\n(.*)/$1/s)
78 1 0 if $tail
116 0 0 unless $comment->url
141 0 7 unless $date
172 0 7 ref $_[-1] eq 'CODE' ? :
174 0 7 if ($article->link)
204 3 22 ref $tag ? :
206 1 24 ref $_[-1] eq 'CODE' ? :
207 1 24 ref $_[0] eq 'HASH' ? :
231 2 4 ref $_[0] eq 'HASH' ? :
237 0 6 if ($timestamp) { }
283 0 16 $option =~ m[^/] ? :
296 12 4 if (my $description = $self->stash('description'))
305 0 16 unless ref $meta_from_config eq 'ARRAY'
323 0 16 unless ref $css_from_config eq 'ARRAY'
341 0 16 unless ref $js_from_config eq 'ARRAY'
471 1 1 unless $email
533 2 0 unless $article->comments->size
542 21 0 (shift())->config('comments_enabled') ? :