Branch Coverage

blib/lib/Class/Refresh.pm
Criterion Covered Total %
branch 22 40 55.0


line true false branch
24 2 1 if ($opts{'track_require'})
33 96 3 unless ref \$file eq 'VSTRING' or not B::svref_2object(\$file)->FLAGS & 1024
59 1 528 unless $INC{$file}
64 529 291 if (exists $CACHE{$file}) { }
65 3 526 if $class->_mtime($file) ne $CACHE{$file}
89 0 4 if (Class::Load::is_class_loaded('Class::MOP'))
90 0 0 if defined $_ and $_->isa('Class::MOP::Class')
99 0 4 if (Class::Load::is_class_loaded('Class::MOP'))
103 0 0 if (not $metas_for_immutable{$to_refresh} and $inc eq '(set by Moose)' and Class::MOP::class_of($to_refresh))
114 0 4 if (Class::Load::is_class_loaded('Class::MOP'))
129 0 4 if (Class::Load::is_class_loaded('Class::MOP'))
149 1 0 if ($last_require_failed) { }
167 4 0 unless Class::Load::is_class_loaded('Class::MOP')
171 0 0 unless $meta
173 0 0 if ($meta->isa('Class::MOP::Class')) { }
0 0 elsif ($meta->isa('Moose::Meta::Role')) { }
184 0 0 $mod->isa('Class::MOP::Class') ? :
219 3 917 unless $INC{$file}
227 16 4 unless $file =~ /\.pm$/
240 1307 16 unless $mod =~ /^\w+(?:::\w+)*$/