Branch Coverage

blib/lib/MooseX/amine.pm
Criterion Covered Total %
branch 60 64 93.7


line true false branch
106 13 5 if ($args->{'module'}) { }
4 1 elsif ($args->{'path'}) { }
108 1 12 if $@
117 3 1 if (/^package ([^;]+);/)
134 1 13 if ($meta->isa('Moose::Meta::Role')) { }
139 13 20 if ($class =~ /^Moose::/)
140 12 1 unless $self->include_moose_in_isa
169 10 4 if (eq_deeply($new_attr, $old_attr)) { }
184 4 14 if ref $_[0]
186 12 2 if @_ == 1
198 4 50 if ($attribute_name =~ /^_/)
199 3 1 unless $self->include_private_attributes
206 11 40 if ($ref eq 'Moose::Meta::Role::Attribute') { }
217 14 37 if ($self->_check_for_stored_attribute($attribute_name))
232 21 0 if $meta->can('roles')
244 8 159 if ($method_name =~ /^_/)
245 6 2 unless $self->include_private_methods
252 143 18 unless ($self->include_accessors_in_method_list)
253 36 107 if $self->_check_exclusion($method_name)
256 107 18 unless ($self->include_standard_methods)
259 66 189 if $method_name eq $_
276 0 11 if $name =~ /Moose::Meta::Role::__ANON/
289 102 51 unless my $fxn = $meta_attr->$_
294 20 31 if $meta_attr->has_documentation
297 47 4 if $meta_attr->has_type_constraint
300 4 47 if $meta_attr->has_applied_traits
307 15 393 if $meta_attr->$_
332 32 0 if ($path = $INC{$path})
334 0 32 unless my $ppi = 'PPI::Document'->new($path)
338 46 3840 if $_[1]->isa('PPI::Statement::Sub')
364 2 12 if $path eq $mod
370 1 2 if $@