Branch Coverage

blib/lib/PAGI/Middleware/FormBody.pm
Criterion Covered Total %
branch 15 26 57.6


line true false branch
57 0 4 if ($scope->{'type'} ne "http")
66 1 3 unless ($is_form)
77 0 3 unless $event and $event->{'type'}
79 3 0 if ($event->{'type'} eq 'http.request') { }
0 0 elsif ($event->{'type'} eq 'http.disconnect') { }
81 0 3 if (length $body > $self->{'max_size'})
85 3 0 unless $event->{'more'}
92 0 3 if ($too_large)
123 0 8 unless defined $key
126 8 0 defined $value ? :
129 2 6 if (exists $result{$key}) { }
130 1 1 if (ref $result{$key} eq 'ARRAY') { }
156 4 0 if lc $h->[0] eq $name