Branch Coverage

blib/lib/DBIx/Class/Schema/Diff/Role/Common.pm
Criterion Covered Total %
branch 38 56 67.8


line true false branch
60 24189 0 if (exists $old->{$k}) { }
62 3795 20394 if (ref $new->{$k} eq 'HASH') { }
63 3795 0 if (ref $old->{$k} eq 'HASH') { }
64 3773 22 unless my $diff = $self->_info_diff($old->{$k}, $new->{$k})
73 68 20326 unless $self->_is_eq($old->{$k}, $new->{$k})
85 7863 90 unless keys %$nh > 0
96 0 0 unless defined $old or defined $new
101 0 21472 if $n_ref and not $o_ref or $o_ref and not $n_ref
104 605 20867 if ($o_ref and $n_ref)
106 0 605 unless $o_ref eq $n_ref
108 0 605 if ($n_ref eq 'CODE') { }
0 605 elsif ($n_ref eq 'SCALAR' or $n_ref eq 'REF') { }
605 0 elsif ($n_ref eq 'ARRAY') { }
0 0 elsif ($n_ref eq 'HASH') { }
0 0 elsif (&blessed($new)) { }
119 11 594 unless scalar @$new == scalar @$old
122 0 594 if scalar @$new == 0 and scalar @$old == 0
129 22 1056 unless $self->_is_eq($o_el, $n_el)
142 0 0 $self->_info_diff($old, $new) ? :
161 1 1 ref $_[0] eq 'ARRAY' ? :
5 2 $_[0] && !ref($_[0]) ? :
166 76 24 &blessed($_[0]) ? :
173 32 16 if ($rt) { }
174 1 31 if (&blessed($v) and &blessed($v) eq 'DBIx::Class::Schema::Diff::SchemaData') { }
2 29 elsif ($rt eq 'HASH') { }
186 4 12 unless (&Module::Runtime::is_module_name($v))
188 4 0 if (-f $file)
191 0 4 unless open my $fh, '<', $file