blib/lib/AnyData/Storage/File.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 21 | 55 | 38.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
44 | 0 | 0 | 3 | $path and $path ne $os_cur_dir |
176 | 0 | 0 | 2 | $file and not ref $file |
203 | 0 | 0 | 2 | not $skip and defined $newfile |
283 | 0 | 0 | 0 | $whence == 0 and $pos == 0 |
297 | 2 | 2 | 0 | $fh and $AnyData::Storage::File::DEBUG |
line | l | !l | condition |
---|---|---|---|
15 | 3 | 1 | shift() || {} |
24 | 6 | 0 | $fh->seek($start, 0) || die($!) |
2 | 0 | $fh->seek(0, 0) || die($!) | |
41 | 0 | 3 | $$self{'f_dir'} || './' |
51 | 3 | 0 | $open_mode ||= 'r' |
125 | 0 | 0 | $$parser{'record_sep'} || "\n" |
170 | 2 | 0 | $file ||= '' |
182 | 1 | 1 | $$parser{'col_names'} || '' |
218 | 34 | 0 | $$parser{'record_sep'} || "\n" |
220 | 31 | 3 | $fh->getline || (return undef) |
267 | 0 | 0 | shift() || {} |
269 | 0 | 0 | length $$parser{'record_sep'} || 0 |
275 | 30 | 0 | shift() || {} |
277 | 30 | 0 | length $$parser{'record_sep'} || 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
45 | 3 | 0 | 0 | $haspath or $file =~ /^$open_table_re/o |
117 | 0 | 0 | 0 | $col_names || $$self{'col_names'} || $$parser{'col_names'} |
180 | 2 | 0 | 0 | $newfile ||= $file |
283 | 0 | 0 | 0 | $whence != 2 or $pos != 0 |