Branch Coverage

blib/lib/Prophet/Replica.pm
Criterion Covered Total %
branch 0 110 0.0


line true false branch
92 0 0 @_ == 1 ? :
96 0 0 unless ($new_class)
106 0 0 if ($handle->replica_exists and $handle->db_uuid)
126 0 0 unless ($self->fs_root_parent)
128 0 0 if ($self->can_write_changesets) { }
139 0 0 if $self->replica_exists
141 0 0 if $args{'db_uuid'}
196 0 0 unless $scheme
201 0 0 unless 'Prophet::App'->try_to_require($class)
242 0 0 unless $source->replica_exists
252 0 0 if ($self->has_seen_changeset('source_uuid', $orig_uuid, 'sequence_no', $orig_seq)) { }
256 0 0 if ($source->uuid and $seq > $self->last_changeset_from_source($source->uuid))
276 0 0 if (ref $callback_args{'after_integrate_changeset'})
308 0 0 unless $self->resolution_db_handle
309 0 0 unless $source->resolution_db_handle
366 0 0 if (not $self->should_accept_changeset($changeset)) { }
0 0 elsif (my $conflict = $self->conflicts_from_changeset($changeset)) { }
370 0 0 if $args{'reporting_callback'}
378 0 0 if $args{'conflict_callback'}
379 0 0 if $args{'resolver'}
380 0 0 if ($args{'resolver_class'})
381 0 0 unless 'Prophet::App'->require($args{'resolver_class'})
408 0 0 if $args{'reporting_callback'}
414 0 0 if $args{'reporting_callback'}
457 0 0 defined $changeset_num ? :
476 0 0 if ($args{'source_uuid'} eq $self->uuid) { }
0 0 elsif ($self->last_changeset_from_source($args{'source_uuid'}) >= $args{'sequence_no'}) { }
502 0 0 if $self->conflicts_from_changeset($changeset)
525 0 0 unless $conflict->has_conflicting_changes
538 0 0 if ($self->db_uuid and $args{'for'}->db_uuid and $self->db_uuid ne $args{'for'}->db_uuid)
540 0 0 unless ($args{'force'})
565 0 0 unless $changeset->has_changes
566 0 0 if $changeset->is_nullification or $changeset->is_resolution
567 0 0 if $self->has_seen_changeset('sequence_no', $changeset->original_sequence_no, 'source_uuid', $changeset->original_source_uuid)
624 0 0 unless (exists $$mapping{$args{'uuid'}})
637 0 0 unless (exists $$mapping{$args{'uuid'}})
732 0 0 unless $self->_do_userdata_read($self->_upstream_replica_cache_file, '[]')
842 0 0 unless $self->can_write_changesets
849 0 0 unless $changeset->has_changes
868 0 0 if $self->record_exists('uuid', $self->uuid, 'type', '_prophet_resolution-' . $change->resolution_cas)
895 0 0 unless $self->can_write_changesets
898 0 0 $self->current_edit ? :
899 0 0 unless $inside_edit
902 0 0 unless $inside_edit
904 0 0 if $@
941 0 0 if ($change->change_type eq 'add_file') { }
0 0 elsif ($change->change_type eq 'add_dir') { }
0 0 elsif ($change->change_type eq 'update_file') { }
0 0 elsif ($change->change_type eq 'delete') { }
969 0 0 if ($changeset->original_source_uuid ne $self->uuid and $self->last_changeset_from_source($changeset->original_source_uuid) < $changeset->original_sequence_no)
975 0 0 if ($changeset->source_uuid)
976 0 0 if ($self->last_changeset_from_source($changeset->source_uuid) < $changeset->sequence_no)
1091 0 0 unless $self->app_handle
1112 0 0 if (eval { do { $self->app_handle } }) { }
1143 0 0 unless $self->app_handle