Branch Coverage

blib/lib/PONAPI/Builder/Resource.pm
Criterion Covered Total %
branch 21 28 75.0


line true false branch
52 0 348 if $self->has_relationship_for($key)
70 0 136 if $self->has_attribute_for($key)
74 132 1 ref $resource eq 'HASH' ? :
3 133 ref $resource eq 'ARRAY' ? :
79 24 111 $self->has_relationship_for($key) ? :
106 343 35 if $self->has_links_builder
107 1 377 if $self->has_meta
112 0 378 if exists $args{'fields'} and exists $args{'fields'}{$self->type}
115 1353 0 $v ? :
0 340 @field_filters ? :
340 38 if $self->has_attributes
120 414 0 $v ? :
0 319 @field_filters ? :
319 59 if $self->has_relationships