Branch Coverage

blib/lib/Cfn.pm
Criterion Covered Total %
branch 39 68 57.3


line true false branch
23 131 17 if (@keys == 1 and substr($first_key, 0, 4) eq 'Fn::' || $first_key eq 'Ref' || $first_key eq 'Condition') { }
24 15 116 if ($first_key eq 'Fn::GetAtt') { }
77 39 elsif ($keys[0] eq 'Ref') { }
2 37 elsif ($keys[0] eq 'Condition') { }
258 22 10 unless defined $self->DependsOn
259 9 1 if ref $self->DependsOn eq 'ARRAY'
290 26 65 if (defined $self->$el)
292 26 0 if (@ret == 1) { }
306 117 63 unless defined $self->$att
308 8 55 if ($self->$att->isa('Cfn::Value::Function::Ref') and $self->$att->LogicalId eq $logical_id) { }
2 53 elsif ($self->$att->isa('Cfn::Value::Function::GetAtt') and $self->$att->LogicalId eq $logical_id) { }
12 41 elsif ($self->$att->isa('Cfn::Value::Array')) { }
2 39 elsif ($self->$att->isa('Cfn::Value::Function')) { }
39 0 elsif ($self->$att->isa('Cfn::Value::Primitive')) { }
0 0 elsif ($self->$att->isa('Cfn::Value')) { }
314 0 8 if (not @ref) { }
348 1 5 defined $self->Condition ? :
397 0 0 defined $self->$_ ? :
493 0 79 unless $retval
500 0 0 if $self->Parameters->{$name}
501 0 0 if (ref $type) { }
511 0 0 if $self->Mappings->{$name}
512 0 0 if (ref $mapping eq 'HASH') { }
522 0 8 if $self->Outputs->{$name}
528 0 1 if $self->Conditions->{$name}
534 0 79 if $self->Resources->{$name}
535 6 73 if (not ref $type) { }
548 0 1 unless defined $self->Resources->{$name}
554 0 0 unless defined $self->Resources->{$name}
560 0 0 unless defined $self->Resources->{$name}
566 0 0 unless defined $self->Resources->{$name}
572 0 0 unless defined $self->Resources->{$name}
592 1 9 defined $self->Transform ? :
0 10 keys %{$self->Mappings;} > 0 ? :