Branch Coverage

blib/lib/MongoDBx/Protocol.pm
Criterion Covered Total %
branch 24 44 54.5


line true false branch
264 0 8 unless defined $data
265 0 8 if length $data < 4
268 0 8 if (length $data != $len)
288 0 1 if ($zero != 0)
297 0 1 if (scalar @$docs != 2)
342 0 1 unless (scalar(@$docs) =~ /^1|2$/)
353 1 0 if ($$docs[1])
365 0 1 if ($zero != 0)
386 0 1 if ($zero != 0)
396 0 1 if (scalar @$docs != 1)
414 0 1 if ($zero != 0)
419 0 1 if (length $data != $n_cursors * 8)
443 0 1 if (length $data > 0)
475 0 8 unless defined $op_code_str
506 4 11 if ($v->bit_test($reply_flag_bit))
518 0 5 if ($options and $$options{'ixhash'})
527 0 9 if (length $data < $l)
540 0 6 if ($idx < 0)
571 4 0 if (defined(my $flag_bit = $$all_op_code_flags{$flag_name}) and $flag_value)
581 0 7 unless $d
584 5 2 if (ref $d eq 'HASH') { }
2 0 elsif (ref $d eq 'ARRAY') { }