Branch Coverage

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


line true false branch
23 1317 608 if (@keys == 1 and substr($first_key, 0, 4) eq 'Fn::' || $first_key eq 'Ref' || $first_key eq 'Condition') { }
24 114 1203 if ($first_key eq 'Fn::GetAtt') { }
918 285 elsif ($keys[0] eq 'Ref') { }
2 283 elsif ($keys[0] eq 'Condition') { }
258 22 10 unless defined $self->DependsOn
259 9 1 if ref $self->DependsOn eq 'ARRAY'
290 470 551 if (defined $self->$el)
292 470 0 if (@ret == 1) { }
306 106 74 unless defined $self->$att
308 8 66 if ($self->$att->isa('Cfn::Value::Function::Ref') and $self->$att->LogicalId eq $logical_id) { }
2 64 elsif ($self->$att->isa('Cfn::Value::Function::GetAtt') and $self->$att->LogicalId eq $logical_id) { }
13 51 elsif ($self->$att->isa('Cfn::Value::Array')) { }
2 49 elsif ($self->$att->isa('Cfn::Value::Function')) { }
49 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 387 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 199 if $self->Resources->{$name}
535 66 133 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 ? :