Branch Coverage

lib/Haineko/CLI/Password.pm
Criterion Covered Total %
branch 14 30 46.6


line true false branch
18 0 2 unless $self->r & $$o{'exec'}
29 0 2 if ($self->r & $$o{'stdin'}) { }
33 0 0 unless $filehandle->fdopen(fileno STDIN, 'r')
41 0 0 if length $password01
45 0 0 if $self->validate($password01)
53 0 0 if length $password02
57 0 0 if $password01 eq $password02
78 1 1 if (length $$self{'params'}{'username'}) { }
90 0 2 if (not length $argv) { }
0 2 elsif (length $argv < 8) { }
117 0 1 if ($$p{'help'})
128 0 1 if (defined $$p{'password'}) { }
162 1 3 if $argvs eq 'o' or $argvs eq 'option'
163 1 2 if $argvs eq 's' or $argvs eq 'subcommand'
164 1 1 if $argvs eq 'e' or $argvs eq 'example'