Branch Coverage

blib/lib/McBain.pm
Criterion Covered Total %
branch 50 58 86.2


line true false branch
184 1 5 if $target eq 'main'
188 0 5 if $INFO{$target}
197 2 3 if (scalar @_)
205 3 2 unless ($target eq $root)
220 2 3 if ($target eq $root)
224 0 2 scalar @_ ? :
227 0 2 if $@
247 0 19 unless $name =~ m[^/]
249 15 4 unless $name =~ m[/$]
251 14 5 unless $topic eq '/'
273 1 1 if ($target eq $root and $INFO{$root}{'_opts'} and $INFO{$root}{'_opts'}{'contextual'})
283 0 1 if $@
285 0 1 unless $forward_target->can('create_from_env')
309 9 20 $INFO{$root}{'_opts'} && $INFO{$root}{'_opts'}{'contextual'} ? :
323 9 2 if (ref $_ and ref $_ eq 'HASH' and exists $$_{'code'} and exists $$_{'error'}) { }
342 44 1 unless $route =~ m[/$]
351 9 36 unless ($r)
353 86 4 unless @captures = $route =~ /^$_$/
359 5 40 unless $r
363 1 39 if ($meth eq 'OPTIONS')
372 2 37 unless exists $$r{$meth}
378 2 35 if $$params_ret{'_rejects'}
387 41 60 if $INFO{$root}{'_pre_route'} and $INFO{$root}{'_pre_route'}{$part}
395 20 78 if $INFO{$root}{'_post_route'} and $INFO{$root}{'_post_route'}{$part}
416 3 1 if $INFO{$`}
439 47 3 unless -d $inc_dir
442 5 6 if not -d $_
452 1 0 if $req =~ m[/Context.pm$] and $opts and $$opts{'contextual'}
471 35 0 unless ($copy eq '/')