| blib/lib/DBIx/RoboQuery/Util.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 11 | 12 | 91.6 |
| line | true | false | branch |
|---|---|---|---|
| 29 | 103 | 0 | unless @keys |
| 33 | 209 | 203 | if (exists $$hash{$key}) |
| 34 | 9 | 200 | unless ref $$hash{$key} eq 'ARRAY' |
| 43 | 8 | 10 | ref $_ ? : |
| 52 | 7 | 6 | $$opts{'suffix'} ? : |
| 73 | 12 | 1 | $sql =~ /\bORDER\s+BY\s+ # start order by clause ( # start capture (?:\w+) # first column (?:\s+(?:ASC|DESC))? # direction (?:\s*,\s* # comma, possibly spaced (?:\w+) # next column (?:\s+(?:ASC|DESC))? # direction )* # repeat )\s* # end capture $suffix # possible query suffix \s*;?\s*\Z # end of SQL /six ? : |