Branch Coverage

blib/lib/DBIx/Class/Schema/Diff/Filter.pm
Criterion Covered Total %
branch 78 90 86.6


line true false branch
30 0 127 unless $diff
38 199 520 if $self->skip_source($s_name) or $self->_is_skip('source_events', $h->{'_event'})
41 0 520 unless defined $newd->{$s_name}
48 125 395 if $newd->{$s_name} and $newd->{$s_name}{'_event'} and $newd->{$s_name}{'_event'} eq 'changed' and scalar keys %{$$newd{$s_name};} == 1
52 127 0 scalar keys %$newd > 0 ? :
58 0 520 unless $diff
62 201 1020 if $type ne '_event' and $self->skip_type($s_name, $type)
64 338 682 if ($type eq 'columns' or $type eq 'relationships' or $type eq 'constraints') { }
66 86 252 unless defined $newd->{$type}
73 520 0 scalar keys %$newd > 0 ? :
78 6 701 if $self->_is_skip('events', $data->{'_event'})
79 150 551 if $self->skip_type_id($s_name, $type, $name)
85 0 338 unless $items
93 280 287 if ($items->{$name}{'_event'} eq 'changed') { }
99 233 47 unless ($filter_deep)
103 14 219 if ($self->match->lookup_path_globmatch($s_name, $type, $name, $k))
112 65 215 if not $globmatch and $self->_should_skip_info_item($type, $s_name, $name, $items->{$name})
114 61 154 if ($filter_deep) { }
116 23 38 unless my $new_diff = $self->_deep_value_filter($items->{$name}{'diff'}, $s_name, $type, $name)
126 154 0 unless $self->_should_skip_info_item($type, $s_name, $name, $items->{$name})
131 196 91 unless $self->_should_skip_info_item($type, $s_name, $name, $items->{$name})
136 252 86 scalar keys %$new_items > 0 ? :
147 51 22 if ($set) { }
148 12 39 if ($val and ref $val eq 'HASH' and ref $set eq 'HASH' and scalar keys %$val > 0) { }
150 0 12 unless defined $new_hash->{$k}
153 1 38 if $self->mode eq 'ignore'
158 22 0 if $self->mode eq 'limit'
163 50 23 scalar keys %$new_hash > 0 ? :
170 989 259 $self->mode eq 'limit' ? :
176 0 719 unless my $HL = $self->match
179 602 117 if ($self->mode eq 'limit') { }
180 40 562 if $self->empty_match
181 388 174 $set ? :
184 4 113 $set && !ref($set) ? :
190 0 701 unless my $HL = $self->match
193 586 115 if ($self->mode eq 'limit') { }
194 44 542 if $self->empty_match
196 357 185 $set || $self->test_leaf_path($s_name) ? :
199 16 99 $set && !ref($set) ? :
206 0 701 unless my $HL = $self->match
209 561 140 if ($self->mode eq 'limit') { }
210 76 485 if $self->empty_match
213 346 139 $set || $self->test_leaf_path($s_name) || $self->test_leaf_path($s_name, $type) ? :
218 11 129 $set && !ref($set) ? :
230 607 2773 if $ret and not ref $ret