Branch Coverage

lib/CtrlO/Crypt/XkcdPassword.pm
Criterion Covered Total %
branch 20 20 100.0


line true false branch
32 11 6 if ($args{'wordlist'}) { }
41 3 14 if (-r $object{'wordlist'}) { }
13 1 elsif ($object{'wordlist'} =~ /::/) { }
52 1 12 if ($@)
60 9 3 if ($handle) { }
2 1 elsif (@{"${pkg}::Words";}) { }
98 2 39 if ($self->_pid != $$)
103 2 37 unless $key eq 'words' or $key eq 'digits'
106 12 25 if (defined $args{$key} and not $args{$key} =~ /^[0-9]+$/)
120 10 17 if (my $d = $args{'digits'})