Branch Coverage

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


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