Branch Coverage

blib/lib/BSON/Code.pm
Criterion Covered Total %
branch 12 14 85.7


line true false branch
48 8836 9344 if (@_ and not $_[0] =~ /^[c|s]/) { }
50 8835 1 if defined $_[1]
53 0 9344 unless @_ % 2 == 0
63 327 17853 unless defined $self->{'code'}
65 0 18180 if exists $self->{'scope'} and ref $self->{'scope'} ne 'HASH'
85 22 1 if ($ENV{'BSON_EXTJSON'})
90 13 9 if defined $_[0]{'scope'}