Branch Coverage

blib/lib/MongoDB/Role/_UpdatePreEncoder.pm
Criterion Covered Total %
branch 10 24 41.6


line true false branch
41 0 1 if ($type eq 'BSON::Raw') { }
0 1 elsif ($type eq 'BSON::Array' and not $is_replace) { }
48 0 1 if ($type eq 'ARRAY' and scalar @$doc and ref $doc->[0] and not $is_replace) { }
52 0 1 $is_replace ? :
0 1 $is_replace ? :
67 1 0 if ($len >= 8) { }
0 0 elsif (not $is_replace) { }
69 0 1 if ($is_replace) { }
70 0 0 if $first_char eq '$'
74 0 1 if $first_char ne '$'
78 0 1 if $err
90 0 1 if $type eq 'BSON::Raw'