Branch Coverage

blib/lib/Net/NIS.pm
Criterion Covered Total %
branch 5 38 13.1


line true false branch
115 0 19 if $constname eq 'constant'
116 0 19 @_ ? :
117 0 19 if ($! != 0)
118 0 0 if ($! =~ /Invalid/) { }
119 0 0 if ($constname =~ /^YP/) { }
153 0 0 if (keys %Net::NIS::nickname == 0)
154 0 0 if (open NICKNAMES, '<', $Nicknames_File) { }
156 0 0 unless $line =~ /^\s*(\S+)\s+(\S+)$/
169 0 0 unless $Net::NIS::nickname{$map}
180 0 1 unless my $map = shift()
187 1 0 unless (my $domain = shift() || yp_get_default_domain())
195 0 0 unless ($map eq $Magic_ypmaster_map)
196 0 0 unless (yp_master($domain, $map))
216 0 0 if ($$self{'map'} eq $Magic_ypmaster_map)
221 0 0 if (exists $$self{'_alldata'} and exists $$self{'_alldata'}{$key})
226 0 0 if (defined(my $val = yp_match($$self{'domain'}, $$self{'map'}, $key)))
231 0 0 if ($Net::NIS::yperr == YPERR_KEY())
264 0 0 if ($$self{'map'} eq $Magic_ypmaster_map) { }
280 0 0 if (ref $$self{'_alldata'} ne 'HASH')