Branch Coverage

blib/lib/Module/Util/Masked.pm
Criterion Covered Total %
branch 21 34 61.7


line true false branch
52 0 24 if ("Devel::Unplug"->can("unplugged"))
54 0 0 ref $unplugged ? :
0 0 if (ref $unplugged ? $module =~ /$unplugged/ : $module eq $unplugged)
68 96 19 unless ref $incval
70 0 19 if ($incval == \&Test::Without::Module::fake_module)
78 0 0 if (exists $href->{$module} or exists $$href{&Module::Util::module_path($module)})
86 10 6 if (builtin::blessed($incval) and $incval->isa("Module::Mask") and $incval->is_masked($module))
103 0 14 @_ ? :
107 5 102 if (_incval_masks_module($inc[$pos], $module))
109 2 3 if ($pos == 0)
127 0 5 if (_module_is_unplugged($module))
130 1 4 unless my(@inc) = _pruned_inc($module, @_)
146 0 5 if (_module_is_unplugged($module))
149 1 4 unless my(@inc) = _pruned_inc($module, @_)
166 0 7 @_ ? :
167 5 65 if (ref $incval and do { require Scalar::Util; builtin::blessed($incval) and $incval->isa('Module::Mask') unless builtin::refaddr($incval) == \&Test::Without::Module::fake_module }) { }
170 6 0 unless builtin::refaddr($incval) == \&Test::Without::Module::fake_module