Branch Coverage

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


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