blib/lib/MongoDB/ReadPreference.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 7 | 9 | 77.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
96 | 211 | 292 | 1 | $self->mode eq 'primary' and not $self->has_empty_tag_sets |
100 | 211 | 288 | 4 | $self->mode eq 'primary' and $self->max_staleness_seconds > 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
113 | 0 | 0 | 454 | @$tag_sets == 0 || @$tag_sets == 1 && !keys(%{$$tag_sets[0];}) |