| blib/lib/PONAPI/DAO/Request/Role/HasFields.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 13 | 14 | 92.8 |
| line | true | false | branch |
|---|---|---|---|
| 19 | 83 | 14 | unless defined $args->{'fields'} |
| 20 | 0 | 14 | unless $self->has_fields |
| 26 | 2 | 16 | if (not $repo->has_type($fields_type)) { } |
| 34 | 11 | 5 | if $ok |
| 43 | 2 | 4 | if ($repo->has_relationship($fields_type, $maybe_rel)) { } |
| 52 | 4 | 1 | @real_fields ? : |
| 55 | 3 | 2 | unless ($ok) |