Condition Coverage

blib/lib/HTTP/Upload/FlowJs.pm
Criterion Covered Total %
condition 69 101 68.3


and 3 conditions

line !l l&&!r l&&r condition
365 0 0 410 exists $info->{$param} and defined $info->{$param}
377 0 270 0 exists $info->{$param} and not $info->{$param} =~ /^[0-9]+$/
388 0 107 1 exists $info->{$param} and not $info->{$param} <= $self->{'maxChunkCount'}
409 0 54 0 exists $info->{$param} and $info->{$param} =~ m([/\\])
420 36 72 0 exists $info->{$param} and $info->{$param} =~ m([/\\]\.\.[/\\])
430 36 72 0 exists $info->{$param} and $info->{$param} =~ /[\x00-\x1f]/
442 0 108 0 exists $info->{$param} and $info->{$param} > $self->{'maxChunkSize'}
455 0 105 3 exists $info->{$param} and $info->{$param} < $self->{'minChunkSize'}
105 1 2 exists $info->{$param} and $info->{$param} < $self->{'minChunkSize'} and $info->{'flowChunkNumber'} < $info->{'flowTotalChunks'} || $info->{'flowTotalChunks'} <= 1
471 2 52 0 not $min_max_error and ($info->{'flowTotalSize'} || 0) > $self->{'maxFileSize'}
2 36 16 not $min_max_error and $method eq "POST"
38 14 2 not $min_max_error and $method eq "POST" and $info->{'localChunkSize'} > $info->{'flowChunkSize'}
2 50 0 not $min_max_error and $info->{'flowCurrentChunkSize'} < $self->expectedChunkSize($info)
2 36 14 not $min_max_error and $method eq "POST"
38 13 1 not $min_max_error and $method eq "POST" and $info->{'localChunkSize'} < $info->{'flowCurrentChunkSize'}
2 49 0 not $min_max_error and $info->{'flowCurrentChunkSize'} > $self->expectedChunkSize($info)
633 6 0 23 -f $chunkname && -s $chunkname == $self->expectedChunkSize($info, $index)
653 3 0 12 $complete && $status == 200 && !@messages
883 0 42 18 exists $mtime{$upload} and $mtime{$upload} < $cutoff

or 2 conditions

line l !l condition
220 0 12 $options{'maxChunkCount'} ||= 1000
221 0 12 $options{'maxFileSize'} ||= 10000000
222 4 8 $options{'maxChunkSize'} ||= 1048576
223 4 8 $options{'minChunkSize'} //= 1024
224 1 11 $options{'forceChunkSize'} //= 1
225 0 12 $options{'simultaneousUploads'} ||= 3
227 0 12 $options{'fileParameterName'} ||= "file"
316 45 9 $self->{'parameter_names'} ||= {"flowChunkNumber", 1, "flowTotalChunks", 1, "flowChunkSize", 1, "flowCurrentChunkSize", 1, "flowTotalSize", 1, "flowIdentifier", 1, "flowFilename", 1, "flowRelativePath", 0}
398 54 0 $info->{'flowChunkNumber'} || 0
54 0 $info->{'flowTotalChunks'} || 0
471 51 1 $info->{'flowTotalSize'} || 0
718 7 0 $content_type || 1
871 0 30 $mtime{$upload} ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
226 0 12 0 $options{'mime'} ||= "MIME::Detect"->new
228 2 10 0 $options{'allowedContentType'} ||= sub { 1; }
455 0 2 1 $info->{'flowChunkNumber'} < $info->{'flowTotalChunks'} || $info->{'flowTotalChunks'} <= 1
532 23 99 0 $index ||= $info->{'flowChunkNumber'}
604 48 28 0 $index || $info->{'flowChunkNumber'}
868 24 6 30 not exists $mtime{$upload} or $mtime{$upload} < $cutoff