Branch Coverage

blib/lib/Meta/Grapher/Moose.pm
Criterion Covered Total %
branch 40 48 83.3


line true false branch
99 0 1 unless eval "require $package; 1;"
117 21 71 if $method_name eq 'meta' and not $self->show_meta
118 4 67 if $method_name eq 'new' and not $self->show_new
119 4 63 if $method_name eq 'DESTROY' and not $self->show_destroy
125 22 41 if $method->original_package_name ne $meta->name
131 18 23 if $method->isa('Class::MOP::Method::Accessor') and $method->accessor_type =~ /^[rw]/
142 20 18 if ($attribute->can('original_role'))
143 17 3 if ($attribute->original_role->name eq $meta->name)
152 16 2 if ($role->get_attribute($attr_name))
171 0 1 unless my $meta = &try(sub { $package->meta; } )
173 0 1 unless &blessed($meta) and $meta->isa('Moose::Meta::Class') || $meta->isa('Moose::Meta::Role')
190 1 0 if $meta->isa('Moose::Meta::Class')
250 22 20 if ($roles_from->isa('Moose::Meta::Class'))
268 17 3 unless ($role->isa('Moose::Meta::Role::Composite'))
270 4 13 if ($role->isa('MooseX::Role::Parameterized::Meta::Role::Parameterized')) { }
279 4 9 $role->meta->can('does_role') && $role->meta->does_role('MooseX::Role::Parameterized::Meta::Trait::Parameterizable') ? :
313 1 20 if $p{'id'} eq 'Moose::Object' and not $self->show_moose_object
314 4 16 if $self->_already_seen_node($p{'id'})
340 20 0 unless ($self->show_moose_object)
341 1 19 if $p{'from'} eq 'Moose::Object'
342 0 19 if $p{'to'} eq 'Moose::Object'
348 0 19 if $p{'from'} eq $p{'to'}
351 1 18 if $self->_already_seen_edge($key)
369 0 78 unless &blessed($meta) and $meta->can('name')