Branch Coverage

blib/lib/Ado/Command/adduser.pm
Criterion Covered Total %
branch 0 28 0.0


line true false branch
27 0 0 unless (@args)
40 0 0 $_[1] ? :
46 0 0 if $args->{'login_name'} and not utf8::is_utf8($args->{'login_name'})
48 0 0 if $args->{'first_name'} and not utf8::is_utf8($args->{'first_name'})
50 0 0 if $args->{'last_name'} and not utf8::is_utf8($args->{'last_name'})
52 0 0 unless ($args->{'ingroup'})
57 0 0 unless $args->{'first_name'} and $args->{'last_name'} and $args->{'login_name'} and $args->{'email'}
69 0 0 if (($group = 'Ado::Model::Groups'->by_name($args->{'login_name'}))->id) { }
77 0 0 unless $group->id
78 0 0 unless $user
80 0 0 if ($user) { }
87 0 0 unless $args->{'ingroup'}
88 0 0 if (not $user->ingroup($args->{'ingroup'})) { }
89 0 0 if ($ingroup = $user->add_to_group($args))