Branch Coverage

blib/lib/Chouette.pm
Criterion Covered Total %
branch 17 74 22.9


line true false branch
34 0 1 if ($app_spec->{'config_file'})
61 0 1 if not -e $self->{'config'}{'var_dir'}
71 0 0 unless ref $middleware_spec
76 0 0 if ($pkg =~ /^Plack::Middleware::/u) { }
77 0 0 unless eval "require $pkg"
79 0 0 unless (eval "require $pkg")
81 0 0 unless eval "require $new_pkg"
92 0 1 if (defined $self->{'app_spec'}{'pre_route'})
128 0 0 unless $task_name =~ /\A\w+\z/u
133 0 0 unless eval "require $pkg"
134 0 0 unless defined &{"${pkg}::new";}
143 1 0 if defined $needed_for
145 1 0 if (ref $spec eq 'CODE') { }
0 0 elsif ($spec =~ /^(.*)::([^:]+)$/u) { }
149 0 0 unless eval "require $pkg"
150 0 0 unless defined &{"${pkg}::$func_name";}
167 1 0 if ($listen =~ /^unix:(.*)/u) { }
185 0 0 if ($listen =~ /^(.*):(\d+)$/u) { }
0 0 elsif ($listen =~ /^(\d+)$/u) { }
217 1 0 unless (-e $log_dir)
218 0 1 unless mkdir $log_dir
242 1 0 if ($self->{'app_spec'}{'tasks'})
243 1 0 unless (-e $task_dir)
244 0 1 unless mkdir $task_dir
257 0 0 if defined &{"${pkg}::CHECKOUT_DONE";}
277 0 0 $checkout_done ? :
296 0 0 if $self->{'app_spec'}{'tasks'}{$task_name}{'checkout_caching'}
339 1 0 if $self->{'quiet'}
359 0 0 unless $self->{'_serving'}
372 0 1 if ($self->{'pre_route_cb'}) { }
381 1 0 if ref $err and $err + 0 == $c->{'chouette'}{'_done_gensym'} + 0
383 0 0 if ($err =~ /^(\d\d\d)\b(?:\s*:\s*)?(.*)/u)
389 0 0 if ($status < 200 or $status >= 400) { }
391 0 0 if (length $msg) { }
418 0 1 if $path eq ''
420 0 1 unless $path =~ /$self->{'route_regexp'}/u
430 0 1 unless $func