| blib/lib/PAGI/Request/MultiPartHandler.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 21 | 46 | 45.6 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 22 | 0 | 0 | 18 | defined $args{'boundary'} and length $args{'boundary'} |
| 50 | 0 | 0 | 0 | $path and -f $path |
| 148 | 0 | 28 | 1 | not $current_fh and $current_size > $self->{'spool_threshold'} |
| 179 | 0 | 0 | 25 | $message and $message->{'type'} |
| 182 | 0 | 0 | 25 | defined $message->{'body'} and length $message->{'body'} |
| line | l | !l | condition |
|---|---|---|---|
| 34 | 0 | 18 | ($args{'temp_dir'} // $ENV{'TMPDIR'}) // "/tmp" |
| 66 | 29 | 0 | $disposition->{'name'} // "" |
| 68 | 14 | 15 | $current_headers->{'content-type'} // "text/plain" |
| 131 | 32 | 0 | $current_headers->{'content-disposition'} // "" |
| 205 | 29 | 0 | $headers->{'content-disposition'} // "" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 34 | 4 | 14 | 0 | $args{'max_field_size'} // $MAX_FIELD_SIZE |
| 4 | 14 | 0 | $args{'max_file_size'} // $MAX_FILE_SIZE | |
| 0 | 18 | 0 | $args{'spool_threshold'} // $SPOOL_THRESHOLD | |
| 1 | 17 | 0 | $args{'max_files'} // $MAX_FILES | |
| 1 | 17 | 0 | $args{'max_fields'} // $MAX_FIELDS | |
| 0 | 0 | 18 | $args{'temp_dir'} // $ENV{'TMPDIR'} | |
| 215 | 0 | 0 | 0 | $result{$1} //= $2 |