Branch Coverage

blib/lib/Dancer/Plugin/Documentation.pm
Criterion Covered Total %
branch 33 36 91.6


line true false branch
92 0 7 if &blessed($documentation) and $documentation->isa('Dancer::Route')
96 1 6 if grep {not &blessed($_) && $_->isa('Dancer::Route');} @routes
121 0 4 unless defined $section
123 3 1 unless $section eq ''
147 2 2 !keys(%args) || exists $args{'section'} ? :
154 4 3 $section_documentation[0]->section le $route_documentation[0]->section ? :
212 6 9 if $method
213 4 11 if $section
215 2 13 unless $APP_TO_ROUTE_DOCUMENTATION{$app}
217 4 11 if defined $section
218 5 10 if defined $path
219 6 9 if defined $method
238 5 4 if $section
240 2 7 unless $APP_TO_SECTION_DOCUMENTATION{$app}
242 5 4 if defined $section
260 0 99 unless $a->section cmp $b->section or $a->path cmp $b->path
268 5 17 unless $APP_TO_ROUTE_DOCUMENTATION{$route_documentation->app}
293 4 5 unless $APP_TO_SECTION_DOCUMENTATION{$section_documentation->app}