Branch Coverage

blib/lib/Elasticsearch/Role/Bulk.pm
Criterion Covered Total %
branch 0 46 0.0


line true false branch
62 0 0 if exists $$params{$_}
114 0 0 unless $Actions{$action}
117 0 0 unless ref $orig eq 'HASH'
125 0 0 exists $$params{"_$_"} ? :
0 0 exists $$params{$_} ? :
132 0 0 unless $metadata{'_index'} or $self->_bulk_args->{'index'}
134 0 0 unless $metadata{'_type'} or $self->_bulk_args->{'type'}
138 0 0 if ($action eq 'update') { }
0 0 elsif ($action ne 'delete') { }
140 0 0 if exists $$params{$_}
155 0 0 if keys %$params
174 0 0 unless exists $$results{'errors'}
177 0 0 unless $on_success or $$results{'errors'} and $on_error || $on_conflict
187 0 0 if (my $error = $$result{'error'}) { }
188 0 0 $on_conflict && $error =~ /$Conflict/ ? :
193 0 0 if $on_success
217 0 0 if $$bulk_args{'index'}
218 0 0 if $$bulk_args{'type'}
226 0 0 unless $allowed{$_}
229 0 0 if (my $fields = delete $doc{'fields'})
231 0 0 if exists $$fields{$_}
235 0 0 if $version_type
237 0 0 unless $transform