Branch Coverage

blib/lib/PONAPI/Builder/Document.pm
Criterion Covered Total %
branch 30 32 93.7


line true false branch
95 112 25 if $self->has_errors_builder and $self->errors_builder->has_errors
102 91 81 if $self->has_resource_builders
107 3 2 if $self->has_resource_builders
113 1 106 if $self->has_resource and not $self->is_collection
147 117 110 unless ($self->has_errors_builder)
148 40 77 if $self->has_meta
149 34 83 if $self->has_links_builder
151 88 29 if ($self->has_resource_builders) { }
152 29 59 if ($self->is_collection) { }
160 59 0 if $self->has_resource
169 13 75 if ($self->has_included)
173 1 25 if $seen{$builder->{'type'}}{$builder->{'id'}}++
180 3 26 if ($self->is_collection) { }
184 1 25 unless $self->has_meta
190 110 116 if ($self->has_errors_builder)
192 110 0 if ($errors)