Branch Coverage

blib/lib/DBIx/Class/AuditAny.pm
Criterion Covered Total %
branch 68 126 53.9


line true false branch
102 0 15 ref $_[0] eq 'HASH' ? :
103 0 15 if ref $class
108 0 15 exists $opts{'track_sources'} ? :
109 0 15 if $sources and !ref($sources) eq 'ARRAY'
110 15 0 exists $opts{'track_all_sources'} ? :
111 0 15 if $sources and $track_all
113 0 15 exists $opts{'init_sources'} ? :
114 0 15 if $init_sources and !ref($init_sources) eq 'ARRAY'
115 0 15 exists $opts{'init_all_sources'} ? :
116 0 15 if $init_sources and $init_all
118 2 13 exists $opts{'collect'} ? :
119 2 13 if ($collect)
121 0 2 if $opts{'collector_params'} or $opts{'collector_class'} or $opts{'collector'}
127 0 15 if ($opts{'collector'})
129 0 0 if $opts{'collector_params'} or $opts{'collector_class'} or $opts{'collect'}
134 0 15 if $sources
135 15 0 if $track_all
137 0 15 if $init_sources
138 0 15 if $init_all
172 0 154 unless ref $cnf
173 0 154 if $cnf->{'class'}
174 0 154 ref $cnf eq $class ? :
175 0 154 unless ref $DataPoint eq $class
176 0 154 if $self->_datapoints->{$DataPoint->name}
207 8 7 if ($self->rename_datapoints)
210 38 48 unless $rename->{$_}
213 132 48 unless exists $$rename{$cnf->{'name'}}
225 15 0 if ($self->auto_include_user_defined_datapoints)
226 334 0 if $_->{'name'}
231 0 334 unless $cnf->{'name'}
233 180 154 unless $activ{$cnf->{'name'}}
238 0 15 if scalar keys %activ > 0
263 0 15 unless ref $self->schema
266 15 0 unless &try(sub {
280 0 15 if $self->schema->auditor_count > 0 and not $self->allow_multiple_auditors
296 0 95 unless my $Source = $self->schema->source($name)
308 0 95 if $log_sources{$source_name}
311 0 95 if $self->tracked_sources->{$source_name}
337 0 0 unless my $SourceContext = $self->tracked_sources->{$name}
374 0 285 if $self->tracked_action_functions->{$func_name}++
392 0 95 if $immutable and not $self->track_immutable
399 0 95 if ($immutable)
404 3 92 if $meta->has_method('audit_take_snapshot')
408 0 0 unless my $AuditObj = shift()
413 0 0 unless $found
417 0 0 unless my $SourceContext = $AuditObj->tracked_sources->{$source_name}
420 0 0 unless ($AuditObj->active_changeset)
441 0 0 unless my $AuditObj = shift()
446 0 0 unless $found
450 0 0 unless $Collector->has_full_row_stored($Row)
455 0 92 if $immutable
465 91 49 $self->active_changeset ? :
470 0 49 if $self->active_changeset
479 27 1 $self->active_changeset ? :
485 0 50 unless $self->active_changeset
489 1 49 if $self->_finishing_changeset
492 49 0 unless ($self->record_empty_changes)
496 2 47 unless ($count_cols > 0)
533 23 70 if $local_changeset
560 93 7 unless $nested
567 13 87 unless $self->tracked_action_functions->{$func_name}
589 0 98 unless ref $data eq 'HASH'
604 0 93 unless $self->_current_change_group