Branch Coverage

blib/lib/PkgForge/SourceUtils.pm
Criterion Covered Total %
branch 1 42 2.3


line true false branch
30 0 0 if ($mod =~ /^\Q$BUILDER_BASE\E::(.+)$/)
44 0 0 unless ($loaded)
55 0 0 if ($type =~ /^(\w+)$/) { }
64 0 0 if (grep {$_ eq $type;} @valid_types) { }
66 0 0 unless $pkg_class->require
79 0 0 if ($mod =~ /^\Q$SOURCE_PACKAGE_BASE\E::(.+)$/)
100 1 0 unless ($loaded)
105 0 0 if $module->can_handle($file)
115 0 0 if (defined $data and ref $data eq 'ARRAY')
117 0 0 if (not defined $item or ref $item ne 'HASH')
122 0 0 unless (defined $type)
127 0 0 if (not defined $pkg_class or $PkgForge::SourceUtils::EVAL_ERROR)
136 0 0 if ($attr->does('PkgForge::Meta::Attribute::Trait::Serialise'))
137 0 0 if ($attr->has_unpack_method)
139 0 0 if (ref $method eq 'CODE') { }
0 0 elsif ($pkg_class->can($method)) { }
148 0 0 if defined $value
172 0 0 if ($attr->does('PkgForge::Meta::Attribute::Trait::Serialise'))
174 0 0 if ($attr->has_pack_method)
176 0 0 if (ref $method eq 'CODE') { }
0 0 elsif ($package->can($method)) { }