Branch Coverage

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


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