Branch Coverage

blib/lib/Data/Password.pm
Criterion Covered Total %
branch 36 50 72.0


line true false branch
36 11 12 if -r $sym
42 0 14 unless $Data::Password::DICTIONARY
45 3 11 unless $dict
46 0 11 unless open DICT, "$dict"
51 0 20 if length $dict_line < $Data::Password::DICTIONARY
53 2 18 if (index($pass, $dict_line) > -1)
63 0 20 unless $Data::Password::FOLLOWING
74 6 30 if $diffs =~ /([\@AB])\1{$len}/
75 0 30 unless $Data::Password::FOLLOWING_KEYBOARD
87 0 24 unless $Data::Password::GROUPS
92 52 44 if $pass =~ /[$_]/
99 1 26 if $Data::Password::SKIPCHAR
106 0 29 if $Data::Password::MINLEN and $len < $Data::Password::MINLEN
107 2 27 if $Data::Password::MAXLEN and $len > $Data::Password::MAXLEN
113 2 27 if (CheckLength($pass))
114 2 0 if ($Data::Password::MAXLEN and $Data::Password::MINLEN) { }
0 0 elsif (not $Data::Password::MAXLEN) { }
120 3 24 if CheckCharset($pass)
121 4 20 if CheckTypes($pass)
123 6 14 if CheckSort($pass)
126 2 12 if $dict
133 7 4 if $reason
136 0 4 if $pass =~ /$tuser/i
140 4 0 unless $comment
142 0 0 if $pass =~ /$_/i