Branch Coverage

blib/lib/Puncheur.pm
Criterion Covered Total %
branch 34 86 39.5


line true false branch
24 1 1 unless $base_class->setting
29 1 1 if ($base_class eq 'Puncheur' and not defined $args{'app_name'})
35 1 1 if ($args{'app_name'})
39 0 0 if $class->can('import')
41 1 0 if ($@)
44 0 1 unless $class->isa($base_class)
57 2 2 if (%args)
58 0 2 if $class eq 'Puncheur'
60 1 1 unless $_SETTING{$class}
86 1 8 unless ref $self
93 0 2 if (ref $self and $asset_dir = $$self{'asset_dir'}) { }
2 0 elsif ($self->can('share_dir')) { }
94 0 0 unless 'File::Spec'->file_name_is_absolute($asset_dir)
114 2 1 if (not $app_name and my $libpath = $INC{"$path.pm"}) { }
116 0 2 if ($libpath =~ s[(?:blib/)?lib/+$path\.pm$][]) { }
144 1 0 $$self{'template_dir'} ? :
145 1 0 ref $tmpl ? :
147 0 0 ref $_ || 'File::Spec'->file_name_is_absolute($_) ? :
2 0 ref $_ && ref $_ eq 'CODE' ? :
190 0 1 $self->debug_mode ? :
196 0 1 if (my $v = $$self{'view'}) { }
197 0 0 !ref($v) ? :
243 0 0 if $dispatcher_pkg->can('import')
245 0 0 if ($@)
249 0 0 if $base_dispatcher->can('import')
253 0 0 $dispatcher_pkg->can('new') ? :
274 0 2 if ref $config_file
275 2 0 unless 'File::Spec'->file_name_is_absolute($config_file)
278 0 2 -e $config_file ? :
296 4 5 unless ref $self
327 0 0 if ($location =~ m[^https?://]) { }
337 0 0 if (my $ref = ref $params)
338 0 0 $ref eq 'ARRAY' ? :
354 0 0 ref $query eq 'HASH' ? :
0 0 !$query ? :
360 0 0 @q ? :
391 0 1 unless ref $self
398 0 0 @_ == 1 ? :
402 0 0 if $server
425 0 0 if &Scalar::Util::blessed($response) and $response->isa('Plack::Response')
427 0 2 unless $response = $c->dispatch
440 0 2 @args > 0 && ref $args[0] ? :
456 0 3 if $module->can('init')