Branch Coverage

blib/lib/McBain.pm
Criterion Covered Total %
branch 53 60 88.3


line true false branch
184 1 6 if $target eq 'main'
188 0 6 if $INFO{$target}
197 3 3 if (scalar @_)
205 3 3 unless ($target eq $root)
220 3 3 if ($target eq $root)
224 0 3 scalar @_ ? :
227 0 3 if $@
247 0 20 unless $name =~ m[^/]
249 15 5 unless $name =~ m[/$]
251 14 6 unless $topic eq '/'
273 2 1 if ($target eq $root and $INFO{$root}{'_opts'} and $INFO{$root}{'_opts'}{'contextual'})
288 2 2 if ($@) { }
297 0 2 unless $ft
299 0 2 unless $ft->can('create_from_env')
325 10 20 $INFO{$root}{'_opts'} && $INFO{$root}{'_opts'}{'contextual'} ? :
339 9 2 if (ref $_ and ref $_ eq 'HASH' and exists $$_{'code'} and exists $$_{'error'}) { }
358 44 2 unless $route =~ m[/$]
367 9 37 unless ($r)
369 109 4 unless @captures = $route =~ /^$_$/
375 5 41 unless $r
379 1 40 if ($meth eq 'OPTIONS')
388 2 38 unless exists $$r{$meth}
394 2 36 if $$params_ret{'_rejects'}
403 41 61 if $INFO{$root}{'_pre_route'} and $INFO{$root}{'_pre_route'}{$part}
411 20 79 if $INFO{$root}{'_post_route'} and $INFO{$root}{'_post_route'}{$part}
432 3 3 if $INFO{$`}
455 57 3 unless -d $inc_dir
458 5 6 if not -d $_
468 1 0 if $req =~ m[/Context.pm$] and $opts and $$opts{'contextual'}
487 35 1 unless ($copy eq '/')