Branch Coverage

lib/Rex/Resource/Common.pm
Criterion Covered Total %
branch 13 22 59.0


line true false branch
28 0 1 unless ("Rex::Resource"->is_inside_resource)
36 1 0 if ($type eq changed())
40 0 1 if ($type eq created())
44 0 1 if ($type eq removed())
48 0 1 if ($message)
65 4 32 if (ref $options eq "CODE")
70 0 36 unless ($name_save =~ /^[a-zA-Z_][a-zA-Z0-9_]+$/u)
94 36 0 if (not $class->can($name) and $name_save =~ /^[a-zA-Z_][a-zA-Z0-9_]+$/u)
97 33 3 if ($class ne 'main' and $class ne 'Rex::CLI') { }
112 32 0 if (exists $options->{'export'} and $options->{'export'})
118 32 0 unless grep {$_ eq "Rex::Exporter";} @{*{$ref_to_ISA;};}