Branch Coverage

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


line true false branch
18 0 2 if not $packages_to_cover or ref $packages_to_cover ne 'ARRAY' or not @$packages_to_cover
36 6 6 if @$PACKAGES_TO_COVER and not grep({$app->name eq $_;} @$PACKAGES_TO_COVER)
44 4 8 if $method eq 'head'
48 2 4 unless @$available_routes
55 4 0 if ($file) { }
69 16 48 if ref $pod_part ne 'ARRAY'
71 8 140 if (ref $ref_part eq 'ARRAY')
80 4 44 if ($pod_string =~ /^$app_string$/)
85 6 2 unless ($$found_routes{$app_string})
93 4 0 if (@$undocumented_routes) { }
0 0 elsif (not $$all_routes{$app->name}{'has_pod'} and @{$$all_routes{$app->name}{'routes'};}) { }