blib/lib/Tree/Trie.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 43 | 63 | 68.2 |
line | l | !l | condition |
---|---|---|---|
558 | 2 | 0 | $wantref and scalar @{$lastword;} |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
35 | 15 | 0 | 1 | defined $options and ref $options eq 'HASH' |
53 | 0 | 1 | 5 | $_[0] and length $_[0] > 1 |
160 | 7 | 0 | 13 | defined($word = shift()) and @_ |
350 | 4 | 0 | 1 | scalar keys %{$ref;} == 1 and exists $$ref{$letters[0]} |
360 | 2 | 0 | 18 | scalar keys %{$$ref{$letter};} == 1 and exists $$ref{$letter}{$letters[0]} |
450 | 211 | 8 | 11 | $suffix_length > 0 and $suffix_length - $walked_suffix_length == 1 |
517 | 58 | 0 | 72 | $$self{'_DEEPSEARCH'} == 3 and not $args{'want_arr'} |
555 | 2 | 0 | 2 | $args{'data'} and $lastwordref |
616 | 1 | 8 | 12 | scalar keys %{$ref;} and not exists $$ref{$$self{'_END'}} |
716 | 4 | 62 | 73 | scalar @letters and exists $$ref{$letters[0]} |
775 | 6 | 0 | 1 | length $key != 1 and $key ne $$self{'_END'} |
line | l | !l | condition |
---|---|---|---|
420 | 45 | 193 | $args{'suf_len'} || 0 |
422 | 219 | 19 | $args{'walked'} || 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
27 | 0 | 16 | 0 | ref $proto || $proto |
104 | 0 | 2 | 10 | $option eq 0 or $option eq 'boolean' |
0 | 4 | 6 | $option eq 1 or $option eq 'choose' | |
0 | 3 | 3 | $option eq 2 or $option eq 'count' | |
0 | 2 | 1 | $option eq 3 or $option eq 'prefix' | |
0 | 1 | 0 | $option eq 4 or $option eq 'exact' | |
186 | 0 | 1 | 1 | $$self{'_FREEZE_END'} || $$self{'_END'} eq $$trie{'_END'} |
558 | 0 | 2 | 0 | $wantref and scalar @{$lastword;} or length $lastword |