Branch Coverage

blib/lib/PAGI/Middleware/Builder.pm
Criterion Covered Total %
branch 34 40 85.0


line true false branch
110 0 1 unless $_current_builder
128 0 2 unless $_current_builder
147 0 1 unless $_current_builder
180 3 2 if (builtin::blessed($name))
181 1 2 if %config
183 1 1 unless $name->can("wrap")
212 3 1 if (builtin::blessed($name))
213 1 2 if %config
215 0 2 unless $name->can("wrap")
245 0 2 unless $path =~ m[^/]
271 2 5 if (@{$self->{'mounts'};})
301 7 7 if ($@)
304 0 7 if $ENV{'PAGI_DEBUG'}
316 3 3 if (my $instance = $mw->{'instance'})
318 1 2 unless $condition
321 1 1 if (&$condition($scope)) { }
333 1 2 if ($condition) { }
337 1 1 if (&$condition($scope)) { }
365 3 2 if ($path eq $prefix or $path =~ m[^\Q$prefix\E/])
369 1 2 if $new_path eq ""