Branch Coverage

lib/Drogo/Dispatcher.pm
Criterion Covered Total %
branch 28 46 60.8


line true false branch
42 1 15 if $params{'self'}
45 0 16 ref $class ? :
48 3 13 if $path_cache{"${class}::$called_path"}
54 0 0 if ($new_class eq $path or $path =~ m[^$new_class/])
74 2 11 unless $path
84 5 8 if @paths
87 0 13 if $params{'auto_import'}
89 10 3 if (UNIVERSAL::can($remote_class, 'get_dispatch_flags')) { }
95 2 8 if ($method eq 'index')
101 7 3 if ($$methods{$method}) { }
126 0 3 if $params{'auto_import'}
127 1 2 if (UNIVERSAL::can($jump_class, 'get_dispatch_flags'))
154 0 5 if $params{'auto_import'}
156 3 2 if (UNIVERSAL::can($jump_class, 'get_dispatch_flags'))
160 2 1 if ($$dispatch_flags{$method} and $$dispatch_flags{$method} eq 'action_match')
181 1 1 if $act ne 'action_regex' and $act ne 'path'
183 1 0 if ($act eq 'action_regex') { }
0 0 elsif ($act eq 'path') { }
188 1 0 if (@results)
208 0 0 if (@results)
245 0 0 if (not exists $INC{$class_file})
251 0 0 if (-e $full_path)
254 0 0 if $@