Branch Coverage

blib/lib/Riji/Model/Blog.pm
Criterion Covered Total %
branch 0 32 0.0


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