Branch Coverage

blib/lib/Dancer2/Plugin/RoutePodCoverage.pm
Criterion Covered Total %
branch 17 22 77.2


line true false branch
17 0 2 if not $packages_to_cover or ref $packages_to_cover ne 'ARRAY' or not @$packages_to_cover
35 4 5 if @$PACKAGES_TO_COVER and not grep({$app->name eq $_;} @$PACKAGES_TO_COVER)
43 2 8 if $method eq 'head'
47 1 4 unless @$available_routes
54 4 0 if ($file) { }
68 16 48 if ref $pod_part ne 'ARRAY'
70 8 140 if (ref $ref_part eq 'ARRAY')
79 4 44 if ($pod_string =~ /^$app_string$/)
84 6 2 unless ($found_routes->{$app_string})
92 4 0 if (@$undocumented_routes) { }
0 0 elsif (not $$all_routes{$app->name}{'has_pod'} and @{$$all_routes{$app->name}{'routes'};}) { }