Condition Coverage

blib/lib/Cfn.pm
Criterion Covered Total %
condition 32 60 53.3


and 3 conditions

line !l l&&!r l&&r condition
8 2169 676 4941 @keys == 1 and substr($first_key, 0, 4) eq 'Fn::' || $first_key eq 'Ref' || $first_key eq 'Condition'
407 28 0 5 &blessed($v) and $v->isa('Cfn::Value')
0 24 4 not &blessed($v) and ref $v eq 'HASH'
0 20 4 not &blessed($v) and ref $v eq 'ARRAY'
646 1709 8 1 $class_name ne $self->Type and $class_name ne 'AWS::CloudFormation::CustomResource'
752 0 0 0 $self->$att->isa('Cfn::Value::Function::Ref') and $self->$att->LogicalId eq $logical_id
0 0 0 $self->$att->isa('Cfn::Value::Function::GetAtt') and $self->$att->LogicalId eq $logical_id
839 765 0 0 $part ne 'Value' and $part ne 'Description'
765 0 0 $part ne 'Value' and $part ne 'Description' and $part ne 'Condition'
0 0 0 $part ne 'Value' and $part ne 'Description' and $part ne 'Condition' and $part ne 'Export'
1045 0 0 7 defined $rest[0] and ref $rest[0] eq 'HASH'
1143 7399 98 1198 $part ne 'Resources' and $part ne 'Mappings'
7497 294 904 $part ne 'Resources' and $part ne 'Mappings' and $part ne 'Parameters'
392 900 4 $part ne 'Resources' and $part ne 'Mappings' and $part ne 'Parameters' and $part ne 'Outputs'
1194 4 0 $part ne 'Resources' and $part ne 'Mappings' and $part ne 'Parameters' and $part ne 'Outputs' and $part ne 'Conditions'
904 0 0 $part ne 'Resources' and $part ne 'Mappings' and $part ne 'Parameters' and $part ne 'Outputs' and $part ne 'Conditions' and $part ne 'Metadata'

or 3 conditions

line l !l&&r !l&&!r condition
8 4934 7 676 substr($first_key, 0, 4) eq 'Fn::' || $first_key eq 'Ref' || $first_key eq 'Condition'
699 0 0 0 $part eq 'Type' or $path eq 'Condition'
844 0 0 0 $part eq 'Description' or $part eq 'Condition'
1053 228 0 6 $third_param // ()