Condition Coverage

blib/lib/Plack/Middleware/Lint.pm
Criterion Covered Total %
condition 29 41 70.7


and 2 conditions

line l !l condition
97 4 1 ref $fh eq 'GLOB' and *{$fh;}{'IO'}

and 3 conditions

line !l l&&!r l&&r condition
45 1 29 1 $env->{'PATH_INFO'} ne '' and not $env->{'PATH_INFO'} =~ m[^/]
60 0 28 1 defined $env->{'SERVER_PROTOCOL'} and not $env->{'SERVER_PROTOCOL'} =~ m[^HTTP/\d]
111 1 0 0 $streaming and @$res == 2
115 0 1 23 $res->[0] =~ /^\d+$/ and $res->[0] >= 100
147 4 0 0 &blessed($res->[2]) and $res->[2]->can('getline')
155 1 4 1 ref $res->[2] eq 'ARRAY' and grep _has_wide_char($_), @{$$res[2];}

or 3 conditions

line l !l&&r !l&&!r condition
12 27 0 0 &reftype($app) eq 'CODE' or overload::Method($app, '&{}')
103 25 2 1 ref $res eq 'ARRAY' or ref $res eq 'CODE'
111 24 0 1 @$res == 3 or $streaming and @$res == 2
147 0 5 5 @$res == 2 or ref $res->[2] eq 'ARRAY'
5 0 5 @$res == 2 or ref $res->[2] eq 'ARRAY' or &Plack::Util::is_real_fh($res->[2])
5 1 4 @$res == 2 or ref $res->[2] eq 'ARRAY' or &Plack::Util::is_real_fh($res->[2]) or is_possibly_fh($res->[2])
1 0 4 @$res == 2 or ref $res->[2] eq 'ARRAY' or &Plack::Util::is_real_fh($res->[2]) or is_possibly_fh($res->[2]) or &blessed($res->[2]) and $res->[2]->can('getline')