| lib/Bot/BasicBot/Pluggable/Store.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 20 | 28 | 71.4 |
| line | true | false | branch |
|---|---|---|---|
| 18 | 16 | 7 | if (@_ % 2 == 0) { } |
| 1 | 6 | elsif (@_ == 1 and ref $_[0] eq 'HASH') { } | |
| 6 | 0 | elsif (@_ == 1 and not ref $_[0]) { } | |
| 0 | 0 | elsif (not @_) { } | |
| 44 | 0 | 10 | if (ref $args ne 'HASH') |
| 50 | 10 | 0 | unless $store_class =~ /::/ |
| 59 | 0 | 10 | unless $store |
| 85 | 10 | 8 | exists $opts{'res'} ? : |
| 87 | 8 | 10 | unless @res |
| 95 | 6 | 71 | if $re =~ /^[^\^].*[^\$]$/ |
| 97 | 68 | 9 | unless $key =~ /$re/ |
| 99 | 9 | 0 | unless $opts{'_count_only'} |
| 100 | 2 | 7 | if $opts{'limit'} and ++$count >= $opts{'limit'} |
| 104 | 0 | 10 | $opts{'_count_only'} ? : |