Condition Coverage

blib/lib/Linux/usermod.pm
Criterion Covered Total %
condition 13 72 18.0


and 2 conditions

line l !l condition
299 0 3 /^\Q$name\E:/ and $flag = 1

and 3 conditions

line !l l&&!r l&&r condition
97 1 0 0 $newval =~ /:/ and $field{$what} != 8 || $gfield{$what} != 4
131 0 0 0 $field{$what} == 8 and $newval
311 6 0 1 /^\s*$/ and $c++
518 0 0 0 /^(.[^:]+):/ and push @users, $1
527 0 0 0 /^(.[^:]+):/ and push @users, $1

or 2 conditions

line l !l condition
100 0 0 shift() || 0
326 1 0 $_ || 1000
470 0 0 $self->get('expire') || 0
471 0 0 $self->get('expire') || 0
545 0 0 $password ||= 'undef'

or 3 conditions

line l !l&&r !l&&!r condition
62 0 2 0 ref $class || $class
96 0 1 0 exists $field{$what} or exists $gfield{$what}
97 0 0 0 $field{$what} != 8 || $gfield{$what} != 4
155 0 0 1 $gfield{$what} == 0 or $gfield{$what} == 4
177 0 0 1 $gfield{$what} == 3 or $gfield{$what} == 7
200 0 0 0 $newval < 1 or $newval > 65535
223 0 0 0 $gfield{$what} == 1 or $gfield{$what} == 5
316 1 0 0 $_ || croak('no username given')
325 0 0 1 $_ > 65535 or $_ < 1
331 0 0 1 $_ > 65535 or $_ < 1
332 1 0 0 $_ || $fields{'uid'}
402 0 0 0 /^\Q$username\E:/ or push @new, $_
406 0 0 0 /^\Q$username\E:/ or push @new, $_
419 0 0 0 /^$group/ or push @tmp, $_
423 0 0 0 /^$group/ or push @tmp, $_