Branch Coverage

blib/lib/Config/Manager/User.pm
Criterion Covered Total %
branch 3 40 7.5


line true false branch
62 0 0 if (exists $ConfCache{$userid} and defined $ConfCache{$userid} and ref $ConfCache{$userid})
68 1 0 unless (($ownerid, $varname) = &whoami())
77 0 0 if ($userid eq $ownerid)
89 0 0 if (defined($scope = 'Config::Manager::Conf'->scope)) { }
91 0 0 if (defined($confobj = 'Config::Manager::Conf'->new)) { }
93 0 0 unless (defined $confobj->init($scope))
110 0 0 if ($@ ne '' or $error ne '')
114 0 0 if ($@ ne '' and $error ne '') { }
136 0 1 if (($user_id) = &whoami())
152 0 0 if (@_ > 0) { }
155 0 0 unless defined($conf = &_get_user_conf($_[0]))
161 0 0 if (defined($user_name = $conf->get(@FULLNAME)))
178 1 0 if (@_ > 0)
190 0 0 if (@_ > 0) { }
193 0 0 unless defined($conf = &_get_user_conf($_[0]))
199 0 0 if (defined($host_id = $conf->get(@HOST_ID)))
218 0 0 if (@_ > 0) { }
221 0 0 unless defined($conf = &_get_user_conf($_[0]))
227 0 0 if (defined($host_pw = $conf->get(@HOST_PW)))
246 0 0 if (defined($machine = 'Config::Manager::Conf'->get(@MACHINE)))