Branch Coverage

blib/lib/Unix/PasswdFile.pm
Criterion Covered Total %
branch 31 50 62.0


line true false branch
47 10 9 unless (@_)
48 1 9 unless defined $$this{'pwent'}{$username}
51 0 9 if @_ > 6
63 0 0 unless defined $this->user($olduser)
81 0 2 @_ ? :
85 1 1 unless wantarray
86 0 1 if ($order eq 'name') { }
99 0 2 unless @uids
101 1 1 if (defined $ignore)
115 1 0 if (defined $this->user('root'))
116 0 1 unless print $fh join(':', 'root', $this->user('root')), "\n"
119 1 7 if $user eq 'root'
120 0 7 unless print $fh join(':', $user, $this->user($user)), "\n"
133 0 1 unless defined $$this{'pwent'}{$username}
134 0 1 @_ ? :
140 1 36 unless defined $$this{'pwent'}{$username}
141 1 35 @_ ? :
147 0 1 unless defined $$this{'pwent'}{$username}
148 0 1 @_ ? :
154 0 1 unless defined $$this{'pwent'}{$username}
155 0 1 @_ ? :
161 0 1 unless defined $$this{'pwent'}{$username}
162 0 1 @_ ? :
168 0 1 unless defined $$this{'pwent'}{$username}
169 0 1 @_ ? :