Branch Coverage

blib/lib/Class/MOP/Package.pm
Criterion Covered Total %
branch 32 36 88.8


line true false branch
19 2518 0 if @args % 2
25 65 2453 if (my $meta = Class::MOP::get_metaclass_by_name($package_name)) { }
34 12 2441 if $options{'weaken'}
44 19 117 if @args % 2
49 2 133 unless defined $package_name and $package_name and !&blessed($package_name) || $package_name->isa('Class::MOP::Package')
55 114 19 if &blessed($package_name)
70 1523 12 unless exists $INC{$filename}
104 2838 5 unless exists $options{'weaken'}
107 2724 119 if ($cache_ok)
109 0 2721 unless defined $cache_key
112 2721 119 if ($cache_ok)
113 2156 565 if (defined $ANON_PACKAGE_CACHE{$cache_key})
122 565 115 if ($cache_ok)
142 0 312 if &in_global_destruction()
144 102 210 if $self->is_anon
167 6 96 if defined $current_meta and $current_meta ne $self
188 1 1120 if $class ne "Class::MOP::Package"
191 1120 0 @_ == 1 ? :