Branch Coverage

blib/lib/Avro/BinaryEncoder.pm
Criterion Covered Total %
branch 19 26 73.0


line true false branch
74 1326 0 ref $schema ? :
89 1 1 $data ? :
95 2 20 unless ($data =~ /^$Avro::BinaryEncoder::RE{'num'}{'int'}$/)
98 2 18 if (abs $data > 2147483647)
109 2 2070 unless ($data =~ /^$Avro::BinaryEncoder::RE{'num'}{'int'}$/)
112 0 2070 if (abs $data > $max64)
171 0 5 unless defined $pos
189 318 0 if (@$data)
219 111 0 if (@keys)
246 4 4 if ($inner_schema->is_data_valid($data))
252 0 4 unless ($elected_schema)
268 0 10 if (&bytes::length($data) != $schema->size)
278 2083 5 if ($_[0] >= 0)