Branch Coverage

blib/lib/OPC.pm
Criterion Covered Total %
branch 0 96 0.0


line true false branch
61 0 0 if (-d $PackagePath) { }
0 0 elsif (-f $PackagePath) { }
77 0 0 unless ($ReadStatus == 0)
78 0 0 $ReadStatus == 3 ? :
85 0 0 unless (grep(($Member->compressionMethod == $_), 0, 8))
108 0 0 if (grep(($PartName eq $_), @$PartNames)) { }
127 0 0 unless (defined $DirPath and -d $DirPath)
137 0 0 if (-f $_)
160 0 0 exists $Param{'binary'} ? :
162 0 0 if ($self->{'_is_zip'}) { }
166 0 0 $IsBinary ? :
176 0 0 exists $Param{'binary'} ? :
178 0 0 if ($self->{'_is_zip'}) { }
182 0 0 ref $NewContents ? :
188 0 0 if ($IsFileHandle) { }
190 0 0 unless File::Copy::copy($NewContents, $PhysicalName)
195 0 0 $IsBinary ? :
196 0 0 unless open my $fh, ">:$Layer", $PhysicalName
198 0 0 unless print {$fh;} $NewContents
209 0 0 $self->{'_is_zip'} ? :
217 0 0 if ($PhysicalName)
227 0 0 if (grep(($ContentType eq $_), 'image/png', 'image/jpeg', 'image/gif'))
238 0 0 unless ($PhysicalName)
240 0 0 if $PartName =~ m[(^|/)(.|..)(/|$)]
250 0 0 if ($self->{'_is_zip'}) { }
257 0 0 unless (-d $self->{'_physical'} . $DirectoryName)
261 0 0 unless (-d $CurPath)
284 0 0 unless (exists $self->{'_content_type_by_part_name'})
286 0 0 unless ($CtXML)
308 0 0 if (defined $CtByPartName{$EachPartName}) { }
329 0 0 exists $self->{'_physical_name_by_part_name'}{$PartName} ? :
380 0 0 if (@RelationNodes)
400 0 0 if $RelationParams{'type'}
401 0 0 if $RelationParams{'target'}
408 0 0 if ($RelationParams{'id'}) { }
411 0 0 if (grep(($RelationID eq $_), @ExistingRelationIDs))
420 0 0 unless grep(($RelationID eq $_), @ExistingRelationIDs)
447 0 0 unless grep(($RelationID eq $_), @ExistingRelationIDs)
458 0 0 unless ($RelationParams{'id'} or $RelationParams{'type'})
463 0 0 if ($RelationParams{'type'})
467 0 0 if ($RelationParams{'id'})
489 0 0 if (not $GetMulty and @Relations > 1)
493 0 0 if ($GetMulty) { }
0 0 elsif (@Relations) { }
509 0 0 $Name =~ m[^/] ? :
523 0 0 if ($Part eq '.') { }
0 0 elsif ($Part eq '..') { }
526 0 0 if (@CleanedSegments > 0) { }