| line |
true |
false |
branch |
|
28
|
0 |
24 |
if ($es->isa('Search::Elasticsearch::Client::0_90::Direct')) |
|
210
|
0 |
0 |
if $domains{$domain} |
|
225
|
0 |
0 |
if $ns = $self->_get_domain_namespace($domain) |
|
227
|
0 |
0 |
unless $self->_get_domain_namespace($domain) |
|
246
|
0 |
172 |
unless Moose::Util::does_role($class, 'Elastic::Model::Role::Doc') |
|
258
|
0 |
62 |
unless my $class = $self->meta->get_class($name) |
|
288
|
0 |
0 |
unless my $name = shift() |
|
291
|
0 |
0 |
if $domain = $self->_get_domain($name) |
|
292
|
0 |
0 |
unless my $ns = $self->namespace_for_domain($name) |
|
311
|
0 |
0 |
$self->has_current_scope ? : |
|
320
|
0 |
0 |
unless $current and &refaddr($current) eq &refaddr($scope) |
|
322
|
0 |
0 |
unless $parent |
|
330
|
0 |
0 |
unless my $uid = $args{'uid'} |
|
338
|
0 |
0 |
if $scope and not $source |
|
341
|
0 |
0 |
unless ($object) |
|
342
|
0 |
0 |
unless ($source or $uid->from_store) |
|
343
|
0 |
0 |
unless $source = $self->get_doc_source(%args) |
|
347
|
0 |
0 |
if $scope |
|
359
|
0 |
0 |
unless my $result = $self->store->get_doc($uid, %args) |
|
368
|
0 |
0 |
unless my $uid = $args{'uid'} |
|
371
|
0 |
0 |
unless my $source = $args{'partial_source'} |
|
384
|
0 |
0 |
unless my $uid = delete $args{'uid'} |
|
397
|
0 |
0 |
if $uid->is_partial |
|
405
|
0 |
0 |
$uid->from_store || $uid->id && defined $args{'version'} ? : |
|
413
|
0 |
0 |
unless my $unique = $self->_update_unique_keys($doc, $action, $on_unique) |
|
416
|
0 |
0 |
unless (my $result = eval {
|
|
427
|
0 |
0 |
unless my $scope = $self->current_scope |
|
444
|
0 |
0 |
unless my $uniques = $meta->unique_keys |
|
449
|
0 |
0 |
if $action eq 'index_doc' and not $from_store |
|
460
|
0 |
0 |
if ($from_store) |
|
462
|
0 |
0 |
if $old eq $new |
|
463
|
0 |
0 |
if length $old |
|
466
|
0 |
0 |
if length $new |
|
472
|
0 |
0 |
if (my(%failed) = $store->create_unique_keys('index', $uniq, 'keys', \%new)) |
|
475
|
0 |
0 |
if ($on_unique) |
|
499
|
0 |
0 |
unless $on_conflict and $error->is('Conflict') |
|
504
|
0 |
0 |
if (my $current_version = $$error{'vars'}{'current_version'}) { } |
|
526
|
0 |
0 |
unless my $uid = delete $args{'uid'} |
|
530
|
0 |
0 |
unless my $result = $self->store->delete_doc($uid, %args) |
|
536
|
0 |
0 |
if (my $scope = $self->current_scope) |
|
548
|
0 |
0 |
unless my $doc = $self->get_doc('uid', $uid, 'ignore', 404) |
|
552
|
0 |
0 |
unless my $uniques = $meta->unique_keys |
|
558
|
0 |
0 |
if length $old |
|
584
|
0 |
0 |
unless my $object = shift() |
|
585
|
0 |
0 |
unless my $class = &blessed($object) |
|
597
|
0 |
0 |
unless does_role($class, 'Elastic::Model::Role::Doc') |
|
607
|
0 |
0 |
unless my $object = shift() |
|
608
|
0 |
0 |
unless my $hash = shift() |
|
619
|
0 |
0 |
unless does_role($class, 'Elastic::Model::Role::Doc') |
|
632
|
0 |
9 |
unless does_role($class, 'Elastic::Model::Role::Doc') |