| blib/lib/String/CommonPrefix.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 4 | 26 | 15.3 |
| line | true | false | branch |
|---|---|---|---|
| 20 | 0 | 6 | unless @_ |
| 25 | 0 | 9 | if (length $_ < $i) { } |
| 28 | 3 | 6 | if substr($_, $i, 1) ne substr($_[0], $i, 1) |
| 37 | 0 | 0 | unless @_ |
| 47 | 0 | 0 | if ($excluded[$i]) { } |
| 0 | 0 | elsif (length $_[$i] < $prefix_len) { } | |
| 61 | 0 | 0 | unless defined $_ |
| 62 | 0 | 0 | unless keys %freqs |
| 66 | 0 | 0 | if $freqs{$majority_char} < $min_items_for_majority |
| 67 | 0 | 0 | unless defined $items[$_] |
| 0 | 0 | unless ($items[$_] eq $majority_char) | |
| 73 | 0 | 0 | unless ($excluded[$_]) |
| 74 | 0 | 0 | unless defined $first_included |