Branch Coverage

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


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