blib/lib/CGI/Tiny/Multipart.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 30 | 39 | 76.9 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
49 | 2 | 1 | 22 | $next_pos >= 0 and $end_pos < 0 || $end_pos > $next_pos |
91 | 19 | 0 | 97 | $next_pos >= 0 and $end_pos < 0 || $end_pos > $next_pos |
92 | 0 | 13 | 84 | not $state{'parsed_optional_crlf'} and $next_pos >= 2 |
102 | 0 | 0 | 19 | not $state{'parsed_optional_crlf'} and $end_pos >= 2 |
119 | 71 | 32 | 13 | defined $current->{'filename'} and $options->{'discard_files'} |
120 | 55 | 7 | 18 | defined $current->{'filename'} and not defined $options->{'parse_as_files'} |
line | l | !l | condition |
---|---|---|---|
27 | 18 | 7 | $options ||= {} |
30 | 25 | 0 | $length || 0 |
33 | 1 | 24 | $options->{'buffer_size'} || 262144 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
46 | 0 | 0 | 25 | $state{'parsing_headers'} or $state{'parsing_body'} |
49 | 1 | 21 | 1 | $end_pos < 0 || $end_pos > $next_pos |
80 | 115 | 45 | 0 | lc $field_name eq 'name' or lc $field_name eq 'filename' |
91 | 1 | 96 | 0 | $end_pos < 0 || $end_pos > $next_pos |
120 | 23 | 18 | 62 | $options->{'parse_as_files'} or defined $current->{'filename'} and not defined $options->{'parse_as_files'} |