Branch Coverage

blib/lib/MongoDB/ReadPreference.pm
Criterion Covered Total %
branch 11 14 78.5


line true false branch
96 1 508 if ($self->mode eq 'primary' and not $self->has_empty_tag_sets)
100 4 504 if ($self->mode eq 'primary' and $self->max_staleness_seconds > 0)
121 120 0 $self->has_empty_tag_sets ? :
0 120 $self->max_staleness_seconds > 0 ? :
132 1 2 unless ($self->has_empty_tag_sets)
135 2 1 keys %$set ? :
139 0 3 if ($self->max_staleness_seconds > 0)