Branch Coverage

blib/lib/Cfn/Diff.pm
Criterion Covered Total %
branch 30 42 71.4


line true false branch
40 9 1 if (exists $old_resources{$res}) { }
41 6 3 if (my(@changes) = $self->compare_resource($new->Resource($res)->Properties, $old->Resource($res)->Properties, $res))
64 121 0 unless defined $new_val or defined $old_val
66 0 24 unless (defined $new_val)
70 1 23 unless (defined $old_val)
74 6 17 unless ($self->properties_equal($new_val, $old_val, "$res.$meth"))
86 74 19 if (&blessed($new)) { }
87 74 0 if (&blessed($old)) { }
89 3 71 if $new->meta->name ne $old->meta->name
92 35 36 if ($new->isa('Cfn::Value::Primitive')) { }
18 18 elsif ($new->isa('Cfn::Value::Function')) { }
18 0 elsif ($new->isa('Cfn::Value')) { }
105 0 19 if (&blessed($old)) { }
108 0 19 if ref $old ne ref $new
109 0 19 if (not ref $new) { }
18 1 elsif (ref $new eq 'ARRAY') { }
1 0 elsif (ref $new eq 'HASH') { }
112 0 18 if @$new != @$old
114 0 33 unless $self->properties_equal($new->[$i], $old->[$i])
118 0 1 if keys %$new != keys %$old
120 0 1 unless $self->properties_equal($new->{$key}, $old->{$key})