Branch Coverage

blib/lib/Avro/DataFileWriter.pm
Criterion Covered Total %
branch 19 28 67.8


line true false branch
59 0 6 unless $datafile->{'writer_schema'}
61 0 6 unless eval {
64 1 5 unless "Avro::DataFile"->is_codec_valid($datafile->{'codec'})
104 1 103 if ($codec eq 'deflate') { }
101 2 elsif ($codec eq 'bzip2') { }
1 1 elsif ($codec eq 'zstandard') { }
107 0 1 unless rawdeflate(\$uncompressed, \$datafile->{'_compressed_block'})
114 0 101 unless bzip2(\$uncompressed, \$compressed)
127 0 104 if ($datafile->{'_current_size'} > $datafile->{'block_max_size'})
142 0 4 if /^avro\./
173 5 0 unless ($datafile->{'_header_printed'})
193 4 1 if ($datafile->codec ne 'null') { }
209 5 6 if $datafile->{'_current_size'}
215 0 0 unless my $fh = $datafile->{'fh'}