Branch Coverage

/root/.cpan/build/Riji-v1.1.4-0/lib/Riji/Model/Blog.pm
Criterion Covered Total %
branch 19 32 59.3


line true false branch
140 14 0 if $_
146 0 14 unless -f -r $file
152 37 12 unless @args
164 0 28 unless -f -r $entry->file_path
177 0 12 unless -f -r $article->file_path
178 0 12 if not $article->paginate and $article->page
193 0 12 @_ == 1 ? :
196 0 12 if (my $tag = $opt{'tag'})
200 6 6 if (my $sort_by = $opt{'sort_by'})
202 6 0 if (grep {$sort_by eq $_;} @enable_fields) { }
203 6 0 if ($sort_by eq 'last_modified_at') { }
0 0 elsif ($sort_by ne 'published_at') { }
216 0 12 if ($sort_order and not grep({$sort_order eq $_;} "asc", "desc"))
220 6 6 if ($opt{'sort_by'} and not $sort_order)
228 0 12 if $sort_order eq "asc"
230 6 6 if (my $limit = $opt{'limit'})