Branch Coverage

lib/Rex/User/Linux.pm
Criterion Covered Total %
branch 0 108 0.0


line true false branch
53 0 0 defined $data->{'create_home'} || defined $data->{'create-home'} || defined $data->{'no_create_home'} || defined $data->{'no-create-home'} ? :
55 0 0 unless ($use_default_home_policy)
56 0 0 if ($data->{'create_home'} or $data->{'create-home'}) { }
0 0 elsif ($data->{'no_create_home'} or $data->{'no-create-home'}) { }
0 0 elsif (exists $data->{'no_create_home'} and $data->{'no_create_home'} == 0 or exists $data->{'no-create-home'} and $data->{'no-create-home'} == 0) { }
71 0 0 if (not defined $uid) { }
75 0 0 if (exists $data->{'system'})
84 0 0 unless (defined $data)
93 0 0 if (exists $data->{'uid'} and $data->{'uid'} == $uid)
100 0 0 if (exists $data->{'non_uniq'})
105 0 0 if (exists $data->{'uid'})
110 0 0 if (exists $data->{'home'})
115 0 0 if not defined $uid and is_dir($data->{'home'})
118 0 0 unless ($use_default_home_policy)
119 0 0 if (not defined $uid) { }
120 0 0 if ($should_create_home) { }
128 0 0 if exists $data->{'home'}
132 0 0 if (exists $data->{'shell'})
137 0 0 if (exists $data->{'comment'})
142 0 0 if (exists $data->{'expire'})
147 0 0 if (exists $data->{'groups'})
154 0 0 if (@groups)
164 0 0 if ($run_cmd)
172 0 0 if ($? == 0) { }
182 0 0 if (exists $data->{'password'})
194 0 0 if ($? != 0)
200 0 0 if (exists $data->{'crypt_password'} and $data->{'crypt_password'})
211 0 0 if ($? != 0)
220 0 0 if ($new_pw_md5 eq $old_pw_md5 and $new_sh_md5 eq $old_sh_md5) { }
243 0 0 if (exists $data->{'delete_home'})
247 0 0 if (exists $data->{'force'})
252 0 0 if ($? == 6) { }
0 0 elsif ($? != 0) { }
289 0 0 if ($? != 0)
297 0 0 if (defined $wantarray and not $wantarray)
322 0 0 if ($? != 0)
347 0 0 if ($? != 0)
354 0 0 exists $data->[9] ? :
371 0 0 unless $result =~ /^$user\s+(L|NP|P)\s+/u
374 0 0 if ($1 eq 'L') { }
381 0 0 if ($? != 0)
397 0 0 unless $result =~ /^$user\s+(L|NP|P)\s+/u
400 0 0 if ($1 eq 'P') { }
408 0 0 if ($? != 0)
425 0 0 if (not defined $gid) { }
0 0 elsif (exists $data->{'gid'} and $data->{'gid'} == $gid) { }
431 0 0 if ("Rex::Config"->get_do_reporting)
440 0 0 unless (defined $data)
441 0 0 if ("Rex::Config"->get_do_reporting)
454 0 0 if (exists $data->{'gid'})
460 0 0 if ($? != 0)
464 0 0 if (defined $gid)
492 0 0 if ($? != 0)
508 0 0 if ($? != 0)