Branch Coverage

blib/lib/Config/Apple/Profile/Payload/Common.pm
Criterion Covered Total %
branch 29 68 42.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 91 if (exists $params{'version'} and not exists $params{'target'})
271 3 208 unless defined $$payload{$key}
274 0 208 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 10 if (not $type =~ /^\d+$/ or $type == $Config::Apple::Profile::Payload::Common::ProfileClass) { }
2 8 elsif ($type == $Config::Apple::Profile::Payload::Common::ProfileUUID) { }
2 6 elsif ($type == $Config::Apple::Profile::Payload::Common::ProfileIdentifier) { }
0 6 elsif ($type == $Config::Apple::Profile::Payload::Common::ProfileArray and !($$keys{$key}{'subtype'} =~ /^\d+$/) || $$keys{$key}{'subtype'} == $Config::Apple::Profile::Payload::Common::ProfileClass) { }
0 6 elsif ($type == $Config::Apple::Profile::Payload::Common::ProfileDict and !($$keys{$key}{'subtype'} =~ /^\d+$/) || $$keys{$key}{'subtype'} == $Config::Apple::Profile::Payload::Common::ProfileClass) { }
346 0 0 if (defined $$payload{$key})
354 1 1 unless (defined $$payload{$key})
362 1 1 unless (defined $$payload{$key})
414 11 10 if exists $$keys{$key}{'optional'}
420 0 0 if $type == $Config::Apple::Profile::Payload::Common::ProfileClass and defined $$payload{$key} and $$payload{$key}->exportable == 0
426 2 8 if ($type == $Config::Apple::Profile::Payload::Common::ProfileArray)
427 1 1 if scalar @{$$payload{$key};} == 0
430 0 1 if ($$keys{$key}{'subtype'} == $Config::Apple::Profile::Payload::Common::ProfileClass)
432 0 0 if $entry->exportable == 0
438 0 9 if ($type == $Config::Apple::Profile::Payload::Common::ProfileDict)
439 0 0 if scalar CORE::keys %{$$payload{$key};} == 0
442 0 0 if ($$keys{$key}{'subtype'} == $Config::Apple::Profile::Payload::Common::ProfileClass)
444 0 0 if $entry->exportable == 0
450 3 6 unless defined $$payload{$key}
494 0 681 unless (exists $self->keys->{$key})
506 380 301 if ($type == $Config::Apple::Profile::Payload::Common::ProfileArray or $type == $Config::Apple::Profile::Payload::Common::ProfileDict)
513 353 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)