Branch Coverage

blib/lib/MongoDB/Role/_ReadPrefModifier.pm
Criterion Covered Total %
branch 0 28 0.0


line true false branch
45 0 0 $read_pref ? :
47 0 0 if ($topology_type eq 'Single' and not $link->server && $link->server->type eq 'Mongos')
65 0 0 if ($topology_type eq 'Single') { }
0 0 elsif (grep {$topology_type eq $_;} 'ReplicaSetNoPrimary', 'ReplicaSetWithPrimary') { }
0 0 elsif ($topology_type eq 'Sharded') { }
66 0 0 if ($link->server and $link->server->type eq 'Mongos') { }
75 0 0 if (not $read_pref or $read_pref->mode eq 'primary') { }
94 0 0 $read_pref ? :
97 0 0 if ($mode eq 'primary') { }
0 0 elsif (grep {$mode eq $_;} 'secondary', 'primaryPreferred', 'nearest') { }
0 0 elsif ($mode eq 'secondaryPreferred') { }
106 0 0 unless $read_pref->has_empty_tag_sets and $read_pref->max_staleness_seconds == -1
113 0 0 if ($need_read_pref)
115 0 0 unless ($$query_ref->FETCH('$query'))