Condition Coverage

lib/Leyland/Context.pm
Criterion Covered Total %
condition 0 77 0.0


and 3 conditions

line !l l&&!r l&&r condition
344 0 0 0 $self->content_type and $self->content
348 0 0 0 $self->content_type =~ m[^application/json] and not $dont_parse
0 0 0 $self->content_type =~ m[^application/(atom+)?xml] and not $dont_parse
381 0 0 0 $self->has_froutes and $self->current_froute + 1 < scalar @{$self->froutes;}
0 0 0 not $self->has_froutes and $self->current_route + 1 < scalar @{$self->routes;}
425 0 0 0 defined $context and ref $context ne 'HASH'
507 0 0 0 $self->_pass_next and $self->current_froute < 100
550 0 0 0 $$err{'location'} and ref $$err{'location'} =~ /^URI/
630 0 0 0 $$a{'mime'} eq 'text/html' and $$b{'mime'} ne 'text/html'
0 0 0 $$b{'mime'} eq 'text/html' and $$a{'mime'} ne 'text/html'
0 0 0 $$a{'mime'} eq 'application/xhtml+xml' and $$b{'mime'} ne 'application/xhtml+xml'
0 0 0 $$b{'mime'} eq 'application/xhtml+xml' and $$a{'mime'} ne 'application/xhtml+xml'
655 0 0 0 $status and $status =~ /^\d+$/
656 0 0 0 $headers and ref $headers eq 'HASH'
719 0 0 0 $want and $want =~ /text|json|xml|html|atom/
725 0 0 0 ref $obj and ref $obj eq 'ARRAY'
0 0 0 ref $obj and ref $obj eq 'ARRAY' and scalar @$obj == 2 || scalar @$obj == 3
0 0 0 ref $obj and ref $obj eq 'ARRAY' and scalar @$obj == 2 || scalar @$obj == 3 and ref $$obj[0] eq 'HASH'
0 0 0 ref $obj and ref $obj eq 'ARRAY' || ref $obj eq 'HASH'
727 0 0 0 exists $$obj[0]{$want} and $$obj[0]{$want} eq ''
733 0 0 0 scalar @$obj == 3 && defined $$obj[2]

or 2 conditions

line l !l condition
720 0 0 $ct ||= 'text/plain; charset=UTF-8'

or 3 conditions

line l !l&&r !l&&!r condition
725 0 0 0 scalar @$obj == 2 || scalar @$obj == 3
0 0 0 ref $obj eq 'ARRAY' || ref $obj eq 'HASH'
727 0 0 0 exists $$obj[0]{$want} and $$obj[0]{$want} eq '' or not exists $$obj[0]{$want}
774 0 0 0 $want eq 'application/atom+xml' or $want eq 'application/xml'