Branch Coverage

blib/lib/SVN/Dumpfilter.pm
Criterion Covered Total %
branch 0 132 0.0


line true false branch
110 0 0 unless (defined $dumpfile)
114 0 0 if (not defined $outfile) { }
0 0 elsif ($outfile eq '') { }
121 0 0 if (not defined $filtersub or ref $filtersub ne 'CODE')
131 0 0 unless (open $dumpfh, "<$dumpfile")
136 0 0 if (defined $outfile)
137 0 0 unless (open $outfh, ">$outfile")
145 0 0 if (defined($line = <$dumpfh>) and $line =~ /^SVN-fs-dump-format-version: (\d+)$/) { }
149 0 0 unless (_supported_dump_format_version($SVN_fs_dump_format_version))
154 0 0 if defined $outfile
160 0 0 if defined $line
167 0 0 if defined $outfile
169 0 0 unless defined $line
171 0 0 if ($line =~ /^UUID: (.*)$/)
174 0 0 if defined $outfile
178 0 0 if defined $outfile
182 0 0 unless defined $line
195 0 0 unless $outfile
202 0 0 if defined $outfile
204 0 0 unless defined $line
208 0 0 if defined $outfile
227 0 0 if ($recalc)
244 0 0 unless exists $$header{'Text-content-length'}
248 0 0 if exists $$prop{'svn:mime-type'} and not $$prop{'svn:mime-type'} =~ m[^text/]
250 0 0 if exists $$prop{'svn:eol-style'}
253 0 0 if exists $$header{'Text-delta'} and lc $$header{'Text-delta'} eq 'true'
262 0 0 if ($recalc)
295 0 0 unless defined $line
299 0 0 unless ($line =~ /^(Node-path|Revision-number): /)
308 0 0 if ($line =~ /^([^:]+):\s*(.*)$/) { }
316 0 0 unless defined $line
319 0 0 if (exists $$header{'Prop-content-length'})
324 0 0 unless ($prop_lines =~ s/PROPS-END$SVN::Dumpfilter::NL\Z//o)
331 0 0 unless (svn_get_properties %$prop, @$prop_order, $prop_lines)
337 0 0 if (exists $$header{'Text-content-length'})
358 0 0 unless keys %$header
369 0 0 if (exists $$header{$head})
384 0 0 if (exists $$header{'Prop-content-length'} and $$header{'Prop-content-length'} > 0)
387 0 0 if (exists $$href{'properties_order'}) { }
395 0 0 if (exists $$header{'Text-content-length'} and $$header{'Text-content-length'} > 0 and exists $$href{'content'})
419 0 0 if ($$header{'Content-length'} == 0 and not $header_existed)
436 0 0 defined $$href{'content'} ? :
439 0 0 if ($length == 0 and not $header_existed) { }
460 0 0 unless keys %$prop
483 0 0 unless $props =~ s/^K (\d+)$SVN::Dumpfilter::NL//o
489 0 0 unless $props =~ s/^V (\d+)$SVN::Dumpfilter::NL//o
502 0 0 unless $props =~ s/^D (\d+)$SVN::Dumpfilter::NL//o
506 0 0 defined $1 ? :
511 0 0 unless $props =~ s/^([A-Z] (\d+)$SVN::Dumpfilter::NL)//o
518 0 0 defined $1 ? :
526 0 0 if (length $props != 0)
578 0 0 if (exists $$prophash{'__DELETED_PROPERTIES__'})
584 0 0 if (exists $$prophash{'__UNKNOWN_PROPERTY_ENTRY__'})
600 0 0 if (exists $$header{'Revision-number'}) { }
0 0 elsif (not exists $$header{'Node-action'}) { }
601 0 0 unless (exists $$header{'Prop-content-length'} and exists $$header{'Content-length'})
621 0 0 if ($action eq 'delete') { }
0 0 elsif ($action eq 'add' or $action eq 'replace') { }
0 0 elsif ($action eq 'change') { }
622 0 0 exists $$header{'Node-kind'} ? :
625 0 0 if (keys %$header != $num_headers_expected)
637 0 0 if (not exists $$header{'Node-kind'}) { }
0 0 elsif ($$header{'Node-kind'} eq 'file') { }
0 0 elsif ($$header{'Node-kind'} eq 'dir') { }
643 0 0 unless (exists $$header{'Text-content-length'} and exists $$header{'Text-content-md5'} and not exists $$header{'Node-copyfrom-rev'} ^ exists $$header{'Node-copyfrom-path'} or exists $$header{'Node-copyfrom-rev'} and exists $$header{'Node-copyfrom-path'} and not exists $$header{'Text-content-length'} ^ exists $$header{'Text-content-md5'})
673 0 0 if (exists $$header{'Text-content-length'} or exists $$header{'Text-content-md5'})