Branch Coverage

blib/lib/Data/Password/zxcvbn/Match/Dictionary.pm
Criterion Covered Total %
branch 50 52 96.1


line true false branch
69 8139 666599 if (my $rank = $ranked_dict->{$word})
94 892 661 if $word eq reverse($word)
117 2414 15670 if @relevant_subs
138 664 1582 unless %{$sub;}
148 1721 1930 if length $token <= 1
150 1341 589 if lc $token eq lc $subbed_match->token
154 1094 1070 $token =~ /\Q$_\E/ ? :
204 3909 270 if $word =~ /$ALL_NOT_UPPER_RE/x
205 2 268 if lc $word eq $word
211 120 148 if $word =~ /$START_UPPER_RE/x
212 21 127 if $word =~ /$END_UPPER_RE/x
213 90 37 if $word =~ /$ALL_NOT_LOWER_RE/x
242 1054 44 if ($S == 0 or $U == 0) { }
263 660 3519 (shift())->reversed ? :
270 107 279 if ($self->dictionary_name eq 'passwords') { }
131 148 elsif ($self->dictionary_name =~ /names$/) { }
27 121 elsif ($is_sole_match) { }
271 26 81 if ($is_sole_match and not $self->l33t and not $self->reversed) { }
64 17 elsif ($self->guesses_log10 <= 4) { }
272 0 26 if ($self->rank <= 10) { }
0 26 elsif ($self->rank <= 100) { }
287 22 109 if ($is_sole_match) { }
307 30 356 if ($self->does_word_start_upper($word)) { }
7 349 elsif ($self->is_word_all_upper($word)) { }
314 13 373 if ($self->reversed and length $word >= 4)
318 10 376 if ($self->l33t)