Branch Coverage

blib/lib/MongoDB/_Server.pm
Criterion Covered Total %
branch 23 30 76.6


line true false branch
113 325 218 if (not $is_master->{'ok'}) { }
23 195 elsif ($is_master->{'msg'} and $is_master->{'msg'} eq 'isdbgrid') { }
3 192 elsif ($is_master->{'isreplicaset'}) { }
171 21 elsif (exists $is_master->{'setName'}) { }
127 2 2 $is_master->{'arbiterOnly'} ? :
81 4 $is_master->{'secondary'} ? :
2 85 $is_master->{'hidden'} ? :
84 87 $is_master->{'ismaster'} ? :
148 764 103 unless $_[0]->is_master->{$s}
216 0 54 unless exists $self->is_master->{'lastWrite'}{'lastWriteDate'}
297 60 0 unless not exists $tg->{$_}
30 28 unless (defined &first(sub { $tg->{$_} ne $ts->{$_} unless not exists $tg->{$_}; } , keys %$ts))
306 54 0 if (my $err = $self->error) { }
323 0 0 if $self->error
324 0 0 if %{$self->tags;}