Branch Coverage

lib/Leyland/Context.pm
Criterion Covered Total %
branch 0 84 0.0


line true false branch
344 0 0 unless $self->content_type and $self->content
346 0 0 if $self->_has_data
348 0 0 if ($self->content_type =~ m[^application/json] and not $dont_parse) { }
0 0 elsif ($self->content_type =~ m[^application/(atom+)?xml] and not $dont_parse) { }
350 0 0 unless $data
355 0 0 unless $data
381 0 0 if ($self->has_froutes and $self->current_froute + 1 < scalar @{$self->froutes;}) { }
0 0 elsif (not $self->has_froutes and $self->current_route + 1 < scalar @{$self->routes;}) { }
425 0 0 if (defined $context and ref $context ne 'HASH')
431 0 0 unless defined $use_layout
436 0 0 unless exists $$context{$_}
439 0 0 unless scalar @{$self->views;}
474 0 0 unless $path
478 0 0 if ($path =~ /^(GET|POST|PUT|DELETE|HEAD|OPTIONS):/) { }
496 0 0 unless scalar @$routes
499 0 0 if scalar @{$$routes[0]{'captures'};}
500 0 0 if scalar @_
550 0 0 if $$err{'location'} and ref $$err{'location'} =~ /^URI/
571 0 0 if $args
602 0 0 if $$_{'mime'} eq $mime
622 0 0 if ($accept) { }
626 0 0 unless defined $q
630 0 0 if ($$a{'q'} > $$b{'q'}) { }
0 0 elsif ($$b{'q'} > $$a{'q'}) { }
0 0 elsif ($$a{'mime'} eq 'text/html' and $$b{'mime'} ne 'text/html') { }
0 0 elsif ($$b{'mime'} eq 'text/html' and $$a{'mime'} ne 'text/html') { }
0 0 elsif ($$a{'mime'} eq 'application/xhtml+xml' and $$b{'mime'} ne 'application/xhtml+xml') { }
0 0 elsif ($$b{'mime'} eq 'application/xhtml+xml' and $$a{'mime'} ne 'application/xhtml+xml') { }
655 0 0 if $status and $status =~ /^\d+$/
656 0 0 if $headers and ref $headers eq 'HASH'
658 0 0 if ($content)
718 0 0 unless ($ct)
719 0 0 if $want and $want =~ /text|json|xml|html|atom/
725 0 0 if (ref $obj and ref $obj eq 'ARRAY' and scalar @$obj == 2 || scalar @$obj == 3 and ref $$obj[0] eq 'HASH') { }
0 0 elsif (ref $obj and ref $obj eq 'ARRAY' || ref $obj eq 'HASH') { }
0 0 elsif (ref $obj) { }
727 0 0 if (exists $$obj[0]{$want} and $$obj[0]{$want} eq '' or not exists $$obj[0]{$want}) { }
733 0 0 scalar @$obj == 3 && defined $$obj[2] ? :
757 0 0 if ($_ eq $class)
774 0 0 if ($want eq 'application/json') { }
0 0 elsif ($want eq 'application/atom+xml' or $want eq 'application/xml') { }
788 0 0 if $self->env->{'psgix.logger'}