Branch Coverage

blib/lib/Dancer/App.pm
Criterion Covered Total %
branch 43 52 82.6


line true false branch
31 14 2 unless defined $app
58 1 28 if defined $prefix and $prefix eq "/"
60 1 28 if defined $prefix and not $prefix =~ m[^/]
63 3 25 defined $self->app_prefix ? :
68 10 18 if ('Dancer::App'->current->on_lexical_prefix) { }
74 15 13 if (ref $cb eq "CODE")
80 0 15 if $e
101 0 0 if (not @missing_modules) { }
115 0 0 unless defined $_apps->{$name}
116 0 0 if $_apps->{$name}->registry->is_empty
130 556 64 if ($route)
134 0 64 if $route
146 84 536 if (Dancer::Config::setting("route_cache"))
151 36 48 if ($route)
162 534 1014 if ($match)
163 14 520 if $r->has_options and not $r->validate_options($request)
166 48 472 if (Dancer::Config::setting("route_cache"))
179 99 16 unless defined $self->name
182 1 114 if exists $$_apps{$self->name}
202 1052 7135 if defined $app
204 98 7037 unless (defined $_current)
219 2247 142 if ($self->name eq "main")
220 26 2221 @_ > 1 ? :
225 38 104 if (@_ > 1) { }
229 45 59 exists $self->settings->{$name} ? :
236 0 38 unless @_ % 2 == 0