Branch Coverage

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


line true false branch
96 1 503 if ($self->mode eq 'primary' and not $self->has_empty_tag_sets)
100 4 499 if ($self->mode eq 'primary' and $self->max_staleness_seconds > 0)
121 118 0 $self->has_empty_tag_sets ? :
0 118 $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)