Branch Coverage

blib/lib/Config/Apple/Profile/Payload/Common.pm
Criterion Covered Total %
branch 6 44 13.6


line true false branch
231 0 0 if ($name eq 'target') { }
0 0 elsif ($name eq 'version') { }
0 0 elsif ($name eq 'completeness') { }
232 0 0 unless ($value == $Config::Apple::Profile::Payload::Common::TargetIOS or $value == $Config::Apple::Profile::Payload::Common::TargetMACOSX)
250 0 0 $value ? :
255 0 90 if (exists $params{'version'} and not exists $params{'target'})
271 3 196 unless defined $$payload{$key}
274 0 196 if (exists $params{'target'})
275 0 0 unless (exists $$keys{$key}{'targets'}{$params{'target'}})
277 0 0 if (exists $params{'completeness'} and $params{'completeness'})
290 0 0 if (exists $params{'version'} and $params{'version'} < 'version'->parse($key_version))
294 0 0 if (exists $params{'completeness'} and $params{'completeness'})
342 0 0 if (not $type =~ /^\d+$/u or $type == $Config::Apple::Profile::Payload::Common::ProfileClass) { }
0 0 elsif ($type == $Config::Apple::Profile::Payload::Common::ProfileUUID) { }
0 0 elsif ($type == $Config::Apple::Profile::Payload::Common::ProfileIdentifier) { }
0 0 elsif ($type == $Config::Apple::Profile::Payload::Common::ProfileArray and !($$keys{$key}{'subtype'} =~ /^\d+$/u) || $$keys{$key}{'subtype'} == $Config::Apple::Profile::Payload::Common::ProfileClass) { }
0 0 elsif ($type == $Config::Apple::Profile::Payload::Common::ProfileDict and !($$keys{$key}{'subtype'} =~ /^\d+$/u) || $$keys{$key}{'subtype'} == $Config::Apple::Profile::Payload::Common::ProfileClass) { }
346 0 0 if (defined $$payload{$key})
354 0 0 unless (defined $$payload{$key})
362 0 0 unless (defined $$payload{$key})
445 0 235 unless (exists $self->keys->{$key})
456 173 0 if ($type == $Config::Apple::Profile::Payload::Common::ProfileString or $type == $Config::Apple::Profile::Payload::Common::ProfileNumber or $type == $Config::Apple::Profile::Payload::Common::ProfileReal or $type == $Config::Apple::Profile::Payload::Common::ProfileBool or $type == $Config::Apple::Profile::Payload::Common::ProfileData or $type == $Config::Apple::Profile::Payload::Common::ProfileDate or $type == $Config::Apple::Profile::Payload::Common::ProfileNSDataBlob or $type == $Config::Apple::Profile::Payload::Common::ProfileDict or $type == $Config::Apple::Profile::Payload::Common::ProfileArray or $type == $Config::Apple::Profile::Payload::Common::ProfileIdentifier or $type == $Config::Apple::Profile::Payload::Common::ProfileUUID)