Branch Coverage

blib/lib/Path/AttrRouter.pm
Criterion Covered Total %
branch 33 68 48.5


line true false branch
71 2 6 if (my $cache_file = $self->action_cache) { }
83 4 55 unless @path
92 0 227 $condition ? :
99 56 171 if $action
110 56 3 if ($action)
112 12 44 unless (ref $action->controller)
135 0 0 unless $name
138 0 0 if $namespace eq '/'
140 0 0 unless my $container = $self->actions->{$namespace}
141 0 0 unless my $action = $$container{$name}
143 0 0 unless ref $action->controller
151 0 0 unless $action
163 0 0 if $namespace eq '/'
166 0 0 if (length $namespace)
169 0 0 if $container
172 0 0 if $self->actions->{''}
184 1 0 if ($regex_type->used)
192 0 3 unless $container
219 7 0 if try sub { $self->_ensure_class_loaded($root_class); }
244 9 20 if (my $cache = $$self{'__object_cache'}{$module}) { }
249 20 0 unless defined $controller->namespace
261 1 1 unless ($cache)
268 0 1 unless $$cache{'dispatch_types'}
280 0 69 unless $controller->_attr_cache
285 0 17 unless $controller->_method_cache
290 29 23 $ns ? :
326 0 29 if ref $entry ne 'GLOB'
327 0 29 unless $pack = *{$entry;}{'HASH'}
330 16 0 if (exists $$pack{'ISA'} and my $isa = $$pack{'ISA'})
331 16 0 if (defined *{$isa;}{'ARRAY'} and @$isa != 0)
349 95 0 if (my($k, $v) = $attr =~ /^(.*?)(?:\(\s*(.+?)\s*\))?$/)
350 70 25 if defined $v
354 95 0 if ($controller->can($initializer)) { }
355 0 95 unless ($k, $v) = $controller->$initializer($name, $v)