Branch Coverage

blib/lib/Class/MOP/Mixin/HasMethods.pm
Criterion Covered Total %
branch 37 38 97.3


line true false branch
19 13044 0 $self->can('find_method_by_name') ? :
22 105 12939 if $existing_method and $existing_method->isa($self->_meta_method_class)
37 1 29250 unless $args{'body'} and "CODE" eq &reftype($args{'body'})
48 3 179168 unless defined $method_name and length $method_name
54 170326 8840 if (&blessed($method) and $method->isa('Class::MOP::Method')) { }
56 18407 151919 if ($method->package_name ne $package_name)
75 129397 49769 unless defined $current_name and not $current_name =~ /^__ANON__/
96 4 25678 unless defined $method_name and length $method_name
100 24239 1439 unless $method
108 3 269514 unless defined $method_name and length $method_name
112 188161 81353 unless $method
114 52103 29250 if &blessed($method) and $method->isa("Class::MOP::Method")
127 53557 241635 if defined $map_entry
131 212400 29235 unless $code and $self->_code_is_mine($code)
139 3 81 unless defined $method_name and length $method_name
146 80 1 if &blessed($removed_method) and $removed_method->isa("Class::MOP::Method")
183 8 158 if ($debugger_enabled)
194 8 155 if ($debugger_enabled and $debug_method_info)
217 3424 4486 if (($self->{'_package_cache_flag_full'} || -1) != $pkg_gen)