Branch Coverage

blib/lib/BSON/Regex.pm
Criterion Covered Total %
branch 13 14 92.8


line true false branch
43 5 17992 unless defined $self->{'pattern'}
44 9 17988 unless defined $self->{'flags'}
46 17966 31 if (length $self->{'flags'})
51 1 18013 unless exists $ALLOWED_FLAGS{$f}
77 1 2 length $f ? :
78 0 3 if $@
97 23 1 if ($ENV{'BSON_EXTJSON'})