Branch Coverage

blib/lib/Test/CleanNamespaces.pm
Criterion Covered Total %
branch 17 22 77.2


line true false branch
60 1 9 unless (eval { do { &Module::Runtime::require_module($ns); 1 } })
68 2 7 unless $ok
90 0 17 if ($INC{&Module::Runtime::module_notional_filename('Class::MOP')} and $meta = Class::MOP::class_of($ns) and $meta->can('get_method_list')) { }
0 17 elsif ($INC{&Module::Runtime::module_notional_filename('Mouse::Util')} and 'Mouse::Util'->can('class_of') and $meta = Mouse::Util::class_of($ns)) { }
114 18 68 if $stash ne $ns and $stash ne 'Role::Tiny'
125 9 2 unless $imports{$_} eq 'overload::nil'
126 1 16 if @overloads
128 0 17 if ("$]" < 5.02)
137 0 0 if @constants
154 3 1 -e 'blib' ? :
160 32 4 unless $file =~ s/\.pm$//