blib/lib/DDG/Request.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 20 | 20 | 100.0 |
line | true | false | branch |
---|---|---|---|
75 | 1 | 48 | unless scalar @parts |
76 | 14 | 34 | $parts[0] eq '' ? : |
79 | 149 | 112 | unless ($_ % 2) |
91 | 8 | 141 | if $part =~ s/^!//go |
92 | 4 | 145 | if $part =~ s/\?$//go |
94 | 10 | 139 | if ($part =~ /[^\w']/o) |
113 | 14 | 10 | unless defined $to_pos |
117 | 3 | 11 | $max % 2 ? : |
10 | 14 | if ($to_pos < $max and $from_pos == 0 || $from_pos == 2 && $query_raw_parts[0] eq '') { } | |
11 | 3 | elsif ($max % 2 ? $to_pos == $max - 1 : $to_pos == $max) { } |