Condition Coverage

blib/lib/PAGI/Request/MultiPartHandler.pm
Criterion Covered Total %
condition 21 46 45.6


and 3 conditions

line !l l&&!r l&&r condition
23 0 0 19 defined $args{'boundary'} and length $args{'boundary'}
51 0 0 0 $path and -f $path
149 0 29 1 not $current_fh and $current_size > $self->{'spool_threshold'}
180 0 0 26 $message and $message->{'type'}
183 0 0 26 defined $message->{'body'} and length $message->{'body'}

or 2 conditions

line l !l condition
35 0 19 ($args{'temp_dir'} // $ENV{'TMPDIR'}) // "/tmp"
67 30 0 $disposition->{'name'} // ""
69 15 15 $current_headers->{'content-type'} // "text/plain"
132 33 0 $current_headers->{'content-disposition'} // ""
206 30 0 $headers->{'content-disposition'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
35 4 15 0 $args{'max_field_size'} // $MAX_FIELD_SIZE
4 15 0 $args{'max_file_size'} // $MAX_FILE_SIZE
0 19 0 $args{'spool_threshold'} // $SPOOL_THRESHOLD
1 18 0 $args{'max_files'} // $MAX_FILES
1 18 0 $args{'max_fields'} // $MAX_FIELDS
0 0 19 $args{'temp_dir'} // $ENV{'TMPDIR'}
216 0 0 0 $result{$1} //= $2