Branch Coverage

blib/lib/Mango/Protocol.pm
Criterion Covered Total %
branch 34 36 94.4


line true false branch
41 1 2 if $flags->{'tailable_cursor'}
42 1 2 if $flags->{'slave_ok'}
43 1 2 if $flags->{'no_cursor_timeout'}
44 1 2 if $flags->{'await_data'}
45 1 2 if $flags->{'exhaust'}
46 1 2 if $flags->{'partial'}
59 3 0 if $fields
67 1 1 $doc->{'ok'} ? :
70 1 2 $_[1] > 2147483646 ? :
76 1 4 unless my $len = bson_length($$bufref)
77 1 3 if length $$bufref < $len
85 1 2 unless $op == 1
90 0 2 if vec $vec, 0, 1
91 1 1 if vec $vec, 1, 1
92 1 1 if vec $vec, 3, 1
117 1 2 unless $reply
118 1 1 $reply->{'flags'}{'query_failure'} ? :
123 1 1 unless my $errors = $doc->{'writeErrors'}