Branch Coverage

lib/Win32/PEFile/PEReader.pm
Criterion Covered Total %
branch 18 26 69.2


line true false branch
17 0 3 unless exists $params{'-file'}
47 0 3 unless open my $peFile, '<', $$self{'owner'}{'-file'}
51 0 3 unless read $peFile, $buffer, 256, 0
53 1 2 unless $buffer =~ /^MZ/
59 2 0 if ($$self{'peOffset'} != 64)
66 0 2 unless read $peFile, $buffer, 4 and $buffer =~ /^PE\0\0/
69 0 2 unless read $peFile, $buffer, 20, 0
72 2 0 if ($$self{'owner'}{'COFFHeader'}{'SizeOfOptionalHeader'})
83 0 2 if ($$self{'is32Plus'}) { }
96 1 2 if $@
158 2 30 unless length $blk
186 20 12 unless $$entry{'size'}
193 9 12 if $start > $$entry{'imageRVA'} or $end < $$entry{'imageRVA'}