Branch Coverage

blib/lib/ElasticSearchX/Model/Document/Trait/Class.pm
Criterion Covered Total %
branch 18 46 39.1


line true false branch
59 2 0 unless eval { do { Class::Load::load_class($set) } } and return $set
71 1 4 $parent ? :
96 0 6 if $more
106 0 24 if @_ % 2 == 1
113 23 1 if $options{'property'} or not exists $options{'property'}
122 1 23 ref $name eq 'ARRAY' ? :
127 0 24 @_ ? :
136 0 0 unless $loaded
140 0 0 unless $$loaded{$_->name} or $_->has_value($instance)
147 4 20 if $self->is_immutable
168 3 4 $_->is_inflated($instance) || $_->is_required && !$_->has_value($instance) ? :
173 6 1 defined $deflate ? :
174 19 7 unless $_->has_value($instance)
183 0 0 $_->is_inflated($instance) || $_->is_required && !$_->has_value($instance) ? :
189 0 0 defined $deflate ? :
190 0 0 unless $_->has_value($instance)
201 0 0 unless $res->{'_source'}
0 0 unless $res->{'fields'}
207 0 0 !$arrays->{$_} && $is_array ? :
0 0 $arrays->{$_} && !$is_array ? :
215 0 0 defined $res->{$_} ? :
217 0 0 unless defined $fields->{$_}
224 0 0 $parent ? :