Branch Coverage

blib/lib/Parse/Stata/DtaReader.pm
Criterion Covered Total %
branch 24 88 27.2


line true false branch
85 0 1 if 2 * $testFloat > 2.7 and 2 * $testFloat < 2.9
88 1 0 if 2 * $testFloat > 2.7 and 2 * $testFloat < 2.9
90 0 1 unless $Parse::Stata::DtaReader::byteOrder
101 3 0 if ($$self{'ds_format'} and $$self{'ds_format'} == 114 || $$self{'ds_format'} == 113)
115 0 3 unless (read $$self{'fh'}, $_, 4)
122 2 1 $$self{'byteorder'} == 2 ? :
137 2 1 $$self{'byteorder'} == 2 ? :
139 2 1 $$self{'ds_format'} == 113 ? :
162 2 1 $$self{'byteorder'} == 2 ? :
164 0 3 if $size > 0
174 0 9 if ($vt == 255) { }
7 2 elsif ($vt == 254) { }
0 2 elsif ($vt == 253) { }
0 2 elsif ($vt == 252) { }
1 1 elsif ($vt == 251) { }
1 0 elsif ($vt < 245) { }
176 0 0 $$self{'byteorder'} == $Parse::Stata::DtaReader::byteOrder ? :
183 6 1 $$self{'byteorder'} == $Parse::Stata::DtaReader::byteOrder ? :
190 0 0 $$self{'byteorder'} == 2 ? :
194 0 0 $$self{'byteorder'} == 2 ? :
209 0 0 $$self{'nextRow'} > $$self{'nobs'} ? :
215 0 0 unless $$self{'rowSize'} == read($$self{'fh'}, $_, $$self{'rowSize'})
220 0 0 if (defined $a[$i])
221 0 0 if ($$self{'byteorder'} != $Parse::Stata::DtaReader::byteOrder)
222 0 0 if ($t == 254) { }
0 0 elsif ($t == 255) { }
235 0 0 if ($t < 245) { }
0 0 elsif ($t == 251) { }
0 0 elsif ($t == 252) { }
0 0 elsif ($t == 253) { }
0 0 elsif ($t == 254) { }
0 0 elsif ($t == 255) { }
239 0 0 if $a[$i] > 100 and $a[$i] < 128
243 0 0 if $a[$i] > 32740 and $a[$i] < 32768
247 0 0 if $a[$i] > 2147483620 and $a[$i] < 2147483648
250 0 0 if defined $a[$i] and $a[$i] > 1.701e+38 || $a[$i] < -1.701e+38
254 0 0 if defined $a[$i] and $a[$i] > 8.988e+307 || $a[$i] < -9**9**9
264 0 0 if $_[0] == 255
265 0 0 if $_[0] == 254
266 0 0 if $_[0] == 253
267 0 0 if $_[0] == 252
268 0 0 if $_[0] == 251
269 0 0 if $_[0] > 0 and $_[0] < 245
275 0 0 if defined $varNumber