Branch Coverage

lib/Rex/User/OpenBSD.pm
Criterion Covered Total %
branch 0 68 0.0


line true false branch
47 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) { }
59 0 0 if (not defined $uid) { }
63 0 0 if (exists $data->{'system'})
73 0 0 if (defined $user_info{'uid'}) { }
74 0 0 if (exists $data->{'uid'})
79 0 0 unless $data->{'uid'} == $user_info{'uid'}
87 0 0 if (exists $data->{'home'})
91 0 0 if ($should_create_home and not defined $uid)
95 0 0 if (exists $data->{'shell'})
99 0 0 if (exists $data->{'comment'})
103 0 0 if (exists $data->{'expire'})
107 0 0 if (exists $data->{'login_class'})
111 0 0 if (exists $data->{'groups'})
117 0 0 if (@groups)
129 0 0 if ($? == 0) { }
139 0 0 if (exists $data->{'password'})
150 0 0 if ($? != 0)
157 0 0 if (exists $data->{'crypt_password'})
167 0 0 if ($? != 0)
176 0 0 if ($new_pw_md5 eq $old_pw_md5) { }
208 0 0 if ($? != 0)
234 0 0 if (not $result =~ /^$user.*$/u) { }
0 0 elsif ($result =~ /^$user.*-$/u) { }
244 0 0 if ($? != 0)
260 0 0 if (not $result =~ /^$user.*$/u) { }
0 0 elsif (not $result =~ /^$user.*-$/u) { }
270 0 0 if ($? != 0)
289 0 0 if (exists $data->{'delete_home'})
294 0 0 if ($? == 67) { }
0 0 elsif ($? != 0) { }
301 0 0 if (exists $data->{'delete_home'} and is_dir($user_info{'home'}))
307 0 0 if ($? != 0)