Branch Coverage

blib/lib/SVN/Dump/Reader.pm
Criterion Covered Total %
branch 42 44 95.4


line true false branch
27 3 63 unless $fh and ref $fh and ref $fh eq 'GLOB'
29 26 37 unless $args
39 46 679 unless my $headers = $fh->read_header_block
43 459 220 if exists $$headers{'Prop-content-length'} and $$headers{'Prop-content-length'}
50 96 583 if (exists $$headers{'Text-content-length'} and $$headers{'Text-content-length'})
56 7 6 if (${*$fh;}{'check_digest'} and !$$headers{'Text-delta'} || $$headers{'Text-delta'} ne 'true')
63 1 6 if $$headers{"Text-content-$algo"} ne $digest
73 1 677 if ($$headers{'Prop-content-length'} || 0) + ($$headers{'Text-content-length'} || 0) != ($$headers{'Content-length'} || 0)
80 1 355 if (exists $$headers{'Node-action'} and $$headers{'Node-action'} eq 'delete' and exists $$headers{'Node-kind'})
101 46 1413 unless defined $line
103 685 728 unless $line eq ''
112 1 2847 unless defined $line
114 684 2163 if $line eq ''
117 0 684 unless keys %$headers
131 2 1250 unless defined $line
135 784 466 if ($line =~ /\AK (\d+)\z/) { }
4 462 elsif ($line =~ /\AD (\d+)\z/) { }
461 1 elsif ($line =~ /\APROPS-END\z/) { }
139 1 783 unless defined $line
142 782 1 if ($line =~ /\AV (\d+)\z/) { }
188 1667 0 if (defined $characters_read) { }
189 1 1666 if ($characters_read != $size)