| lib/MojoX/JSON/RPC/Service.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 10 | 16 | 62.5 |
| line | true | false | branch |
|---|---|---|---|
| 15 | 1 | 1 | if (ref $_rpcs eq 'HASH' and exists $_rpcs->{$class}) |
| 29 | 0 | 8 | if (ref $method ne 'CODE') |
| 33 | 0 | 8 | if (exists $_rpcs->{$class}{$m}) |
| 47 | 0 | 13 | if (not defined $name or $name eq '') |
| 50 | 0 | 13 | if (ref $sub ne 'CODE') |
| 53 | 0 | 13 | if (exists $self->{'_rpcs'}{$name}) |
| 58 | 0 | 13 | if (ref $options ne 'HASH') |
| 65 | 32 | 7 | unless (exists $options->{$opt}) |