line |
true |
false |
branch |
51
|
0 |
6 |
if $schema and not eval {
|
63
|
5 |
2 |
unless (exists $datafile->{'_writer_schema'})
|
72
|
6 |
13 |
unless (exists $datafile->{'_metadata'})
|
81
|
6 |
0 |
unless (exists $datafile->{'_header'})
|
97
|
0 |
6 |
unless $data->{'magic'} eq "Avro::DataFile"->AVRO_MAGIC
|
100
|
0 |
6 |
unless $datafile->{'sync_marker'} = $data->{'sync'}
|
104
|
1 |
5 |
unless "Avro::DataFile"->is_codec_valid($codec)
|
116
|
4 |
5 |
if ($datafile->eof) { }
|
120
|
5 |
0 |
if $datafile->eob
|
136
|
1 |
3 |
if $datafile->eof
|
137
|
1 |
2 |
if $datafile->eob
|
141
|
0 |
3 |
if ($block_count < $count) { }
|
143
|
0 |
0 |
unless scalar @objs == $block_count
|
178
|
0 |
0 |
if ($block_count <= $count) { }
|
179
|
0 |
0 |
unless $datafile->skip_to_block_end
|
198
|
0 |
5 |
unless $datafile->{'_header'}
|
208
|
1 |
4 |
if $codec eq "null"
|
211
|
0 |
4 |
unless my $nread = read($fh, my $block, $datafile->{'block_size'} + 16)
|
220
|
1 |
3 |
if ($codec eq 'deflate') { }
|
|
2 |
1 |
elsif ($codec eq 'bzip2') { }
|
|
1 |
0 |
elsif ($codec eq 'zstandard') { }
|
240
|
1 |
3 |
unless (defined $marker)
|
245
|
0 |
4 |
unless (($marker || '') eq $datafile->sync_marker)
|
254
|
0 |
0 |
if (my $reader = $datafile->{'reader'})
|
286
|
1 |
10 |
if $datafile->eof
|
288
|
4 |
6 |
if ($datafile->{'reader'}) { }
|
289
|
0 |
4 |
if $datafile->{'reader'}->eof
|
293
|
6 |
0 |
unless $datafile->{'block_start'}
|
294
|
0 |
0 |
if $pos >= $datafile->{'block_start'} + $datafile->{'block_size'}
|
301
|
14 |
13 |
if ($datafile->{'reader'})
|
302
|
8 |
6 |
unless $datafile->{'reader'}->eof
|
304
|
7 |
12 |
if $datafile->{'fh'}->eof
|