Branch Coverage

blib/lib/CCfnX/Shortcuts.pm
Criterion Covered Total %
branch 25 90 27.7


line true false branch
26 0 0 if (@vars) { }
50 0 0 if @_ > 0
56 0 0 if @_ > 0
64 0 0 if @_ > 0
85 0 0 if @_ != 3
89 0 0 if ($meta->find_attribute_by_name($name))
108 0 54 if @_ != 4 and @_ != 5
112 1 53 if ($meta->find_attribute_by_name($name))
116 44 9 unless defined $extra
119 1 52 if (ref $options eq 'CODE') { }
52 0 elsif (ref $options eq 'HASH') { }
126 0 53 if ($resource =~ /^Custom::/) { }
149 0 4 if @_ != 3
153 0 4 if ($meta->find_attribute_by_name($name))
157 0 4 if (my($att) = $name =~ /^\+(.*)/) { }
183 0 4 if @_ != 3
187 0 4 if (my($att) = $name =~ /^\+(.*)/) { }
211 0 0 if @_ != 2
239 0 0 unless defined $param
247 0 7 unless defined $param
254 0 5 if defined $rest
255 0 5 unless defined $attribute
256 2 3 if (not defined $method) { }
274 0 42 unless defined $ref
280 0 0 unless defined $condition
286 0 8 unless defined $ref and defined $property
292 0 0 unless defined $lbport
293 0 0 unless defined $lbprotocol
294 0 0 unless defined $instanceport
295 0 0 unless defined $instanceprotocol
320 0 1 if ($port =~ /\-/) { }
321 0 0 if ($port eq '-1') { }
330 1 0 unless defined $proto
335 1 0 if $to =~ m[^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/\d{1,2}$]
337 0 1 unless defined $key
350 0 0 if (ref $name and $name->isa('CCfnX::DynamicValue'))
354 0 0 if (ref $criterion{$key} and $criterion{$key}->isa('CCfnX::DynamicValue'))
411 0 0 if ($self->params->update) { }
414 0 0 unless (defined $resources)
426 0 0 unless (defined $asg)
433 0 0 if scalar(@{$asg->AutoScalingGroups;} == 0)
456 0 0 if ($self->params->update) { }
458 0 0 unless (defined $resources)
470 0 0 unless (defined $instance)
477 0 0 if scalar(@{$instance->Reservations;} == 0)