Branch Coverage

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


line true false branch
19 13363 0 $self->can('find_method_by_name') ? :
22 107 13256 if $existing_method and $existing_method->isa($self->_meta_method_class)
37 1 29958 unless $args{'body'} and "CODE" eq &reftype($args{'body'})
48 3 183629 unless defined $method_name and length $method_name
54 174533 9094 if (&blessed($method) and $method->isa('Class::MOP::Method')) { }
56 18541 155992 if ($method->package_name ne $package_name)
75 132892 50735 unless defined $current_name and not $current_name =~ /^__ANON__/
96 4 26225 unless defined $method_name and length $method_name
100 24755 1470 unless $method
108 3 275518 unless defined $method_name and length $method_name
112 192408 83110 unless $method
114 53152 29958 if &blessed($method) and $method->isa("Class::MOP::Method")
127 54636 247107 if defined $map_entry
131 217163 29944 unless $code and $self->_code_is_mine($code)
139 3 83 unless defined $method_name and length $method_name
146 82 1 if &blessed($removed_method) and $removed_method->isa("Class::MOP::Method")
183 8 159 if ($debugger_enabled)
194 8 156 if ($debugger_enabled and $debug_method_info)
217 3483 4589 if (($self->{'_package_cache_flag_full'} || -1) != $pkg_gen)