Branch Coverage

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


line true false branch
102 0 14 ref $_[0] eq 'HASH' ? :
103 0 14 if ref $class
108 0 14 exists $opts{'track_sources'} ? :
109 0 14 if $sources and !ref($sources) eq 'ARRAY'
110 14 0 exists $opts{'track_all_sources'} ? :
111 0 14 if $sources and $track_all
113 0 14 exists $opts{'init_sources'} ? :
114 0 14 if $init_sources and !ref($init_sources) eq 'ARRAY'
115 0 14 exists $opts{'init_all_sources'} ? :
116 0 14 if $init_sources and $init_all
118 2 12 exists $opts{'collect'} ? :
119 2 12 if ($collect)
121 0 2 if $opts{'collector_params'} or $opts{'collector_class'} or $opts{'collector'}
127 0 14 if ($opts{'collector'})
129 0 0 if $opts{'collector_params'} or $opts{'collector_class'} or $opts{'collect'}
134 0 14 if $sources
135 14 0 if $track_all
137 0 14 if $init_sources
138 0 14 if $init_all
172 0 143 unless ref $cnf
173 0 143 if $cnf->{'class'}
174 0 143 ref $cnf eq $class ? :
175 0 143 unless ref $DataPoint eq $class
176 0 143 if $self->_datapoints->{$DataPoint->name}
207 7 7 if ($self->rename_datapoints)
210 33 42 unless $rename->{$_}
213 116 42 unless exists $$rename{$cnf->{'name'}}
225 14 0 if ($self->auto_include_user_defined_datapoints)
226 312 0 if $_->{'name'}
231 0 312 unless $cnf->{'name'}
233 169 143 unless $activ{$cnf->{'name'}}
238 0 14 if scalar keys %activ > 0
263 0 14 unless ref $self->schema
266 14 0 unless &try(sub { $self->schema->does('DBIx::Class::AuditAny::Role::Schema'); } )
280 0 14 if $self->schema->auditor_count > 0 and not $self->allow_multiple_auditors
296 0 92 unless my $Source = $self->schema->source($name)
308 0 92 if $log_sources{$source_name}
311 0 92 if $self->tracked_sources->{$source_name}
337 0 0 unless my $SourceContext = $self->tracked_sources->{$name}
374 0 276 if $self->tracked_action_functions->{$func_name}++
392 0 92 if $immutable and not $self->track_immutable
399 0 92 if ($immutable)
404 3 89 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 89 if $immutable
465 88 47 $self->active_changeset ? :
470 0 47 if $self->active_changeset
479 26 1 $self->active_changeset ? :
485 0 48 unless $self->active_changeset
489 1 47 if $self->_finishing_changeset
492 47 0 unless ($self->record_empty_changes)
496 2 45 unless ($count_cols > 0)
533 22 67 if $local_changeset
560 89 7 unless $nested
567 13 83 unless $self->tracked_action_functions->{$func_name}
589 0 94 unless ref $data eq 'HASH'
604 0 89 unless $self->_current_change_group