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
139 664 1582 unless %{$sub;}
149 1721 1930 if length $token <= 1
151 1341 589 if lc $token eq lc $subbed_match->token
155 1094 1070 $token =~ /\Q$_\E/ ? :
205 3909 270 if $word =~ /$ALL_NOT_UPPER_RE/x
206 2 268 if lc $word eq $word
212 120 148 if $word =~ /$START_UPPER_RE/x
213 21 127 if $word =~ /$END_UPPER_RE/x
214 90 37 if $word =~ /$ALL_NOT_LOWER_RE/x
243 1054 44 if ($S == 0 or $U == 0) { }
264 660 3519 (shift())->reversed ? :
271 107 279 if ($self->dictionary_name eq 'passwords') { }
131 148 elsif ($self->dictionary_name =~ /names$/) { }
27 121 elsif ($is_sole_match) { }
272 26 81 if ($is_sole_match and not $self->l33t and not $self->reversed) { }
64 17 elsif ($self->guesses_log10 <= 4) { }
273 0 26 if ($self->rank <= 10) { }
0 26 elsif ($self->rank <= 100) { }
288 22 109 if ($is_sole_match) { }
308 30 356 if ($self->does_word_start_upper($word)) { }
7 349 elsif ($self->is_word_all_upper($word)) { }
315 13 373 if ($self->reversed and length $word >= 4)
319 10 376 if ($self->l33t)