Branch Coverage

blib/lib/PONAPI/DAO/Request.pm
Criterion Covered Total %
branch 45 48 93.7


line true false branch
48 243 0 @_ == 1 ? :
51 0 243 unless defined $args{'version'}
67 10 225 unless $self->repository->has_type($type)
71 169 56 if ($self->does('PONAPI::DAO::Request::Role::HasID')) { }
3 53 elsif (defined $args->{'id'}) { }
72 5 164 unless $self->has_id
80 73 152 if ($self->does('PONAPI::DAO::Request::Role::HasRelationshipType')) { }
11 141 elsif (defined $args->{'rel_type'}) { }
82 67 6 defined $args->{'rel_type'} ? :
90 27 198 if (defined $args->{'include'})
91 20 7 $self->does('PONAPI::DAO::Request::Role::HasInclude') ? :
97 21 204 if (defined $args->{'fields'})
98 14 7 $self->does('PONAPI::DAO::Request::Role::HasFields') ? :
104 3 222 if (defined $args->{'filter'})
105 3 0 $self->does('PONAPI::DAO::Request::Role::HasFilter') ? :
111 15 210 if (defined $args->{'sort'})
112 9 6 $self->does('PONAPI::DAO::Request::Role::HasSort') ? :
118 14 211 if (defined $args->{'page'})
119 8 6 $self->does('PONAPI::DAO::Request::Role::HasPage') ? :
125 97 128 if (exists $args->{'data'}) { }
7 121 elsif ($self->can('has_data')) { }
126 87 10 if ($self->can('data')) { }
142 28 168 if $self->send_doc_self_link and not $doc->has_link('self')
146 194 2 $doc->status != 204 ? :