Condition Coverage

blib/lib/SVN/Dumpfile/Node/Headers.pm
Criterion Covered Total %
condition 18 48 37.5


and 3 conditions

line !l l&&!r l&&r condition
36 0 40 3 @_ == 1 and ref $_[0] eq 'HASH'
0 39 1 @_ == 1 and ref $_[0] eq 'ARRAY'
39 0 1 @_ == 1 and ref $_[0] eq 'ARRAY' and @{$_[0];} % 2 == 0
0 0 39 @_ == 1 and not defined $_[0]
70 0 26 0 defined $line and $line =~ /^$/
81 0 26 102 defined($line = $fh->getline) and not $line =~ /^$/
141 0 4 0 exists $$header{'Prop-content-length'} and exists $$header{'Content-length'}
182 0 0 2 exists $$header{'Text-content-length'} and exists $$header{'Text-content-md5'}
0 0 2 exists $$header{'Text-content-length'} and exists $$header{'Text-content-md5'} and not exists $$header{'Node-copyfrom-rev'} ^ exists $$header{'Node-copyfrom-path'}
0 0 0 exists $$header{'Node-copyfrom-rev'} and exists $$header{'Node-copyfrom-path'}
0 0 0 exists $$header{'Node-copyfrom-rev'} and exists $$header{'Node-copyfrom-path'} and not exists $$header{'Text-content-length'} ^ exists $$header{'Text-content-md5'}

or 3 conditions

line l !l&&r !l&&!r condition
121 18 0 0 eval { do { $fh->isa('IO::Handle') } } or ref $fh eq 'GLOB'
18 0 0 eval { do { $fh->isa('IO::Handle') } } or ref $fh eq 'GLOB' or ref \$fh eq 'GLOB'
162 5 0 0 $action eq 'add' or $action eq 'replace'
182 2 0 0 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'}
210 0 0 3 exists $$header{'Text-content-length'} or exists $$header{'Text-content-md5'}