Branch Coverage

blib/lib/MooX/CaptainHook.pm
Criterion Covered Total %
branch 17 30 56.6


line true false branch
22 6 14 if exists $Role::Tiny::INFO{$package}
23 14 0 if exists $Moo::MAKERS{$package}
24 0 0 if ($INC{'Class/MOP.pm'} and my $classof = 'Class::MOP'->can('class_of'))
26 0 0 if $meta and $meta->isa('Moose::Meta::Role')
36 0 8 if defined $key and $already{$key}++
37 1 7 unless $callbacks
66 0 1 unless $MooX::CaptainHook::on_application{$role}
1 7 if MooX::CaptainHook::is_role($package)
68 3 5 unless $MooX::CaptainHook::on_inflation{$role}
86 0 0 unless $meta->isa('Moose::Meta::Role')
129 4 3 unless defined $role
132 5 2 unless Role::Tiny::does_role('Moo::Role', 'MooX::CaptainHook::OnApplication')
150 0 0 unless $MooX::CaptainHook::on_inflation{$pkg}
166 4 10 unless defined $pkg
178 0 0 if 'Moo::HandleMoose'->can('inject_real_metaclass_for') and not Role::Tiny::does_role('Moo::HandleMoose', 'MooX::CaptainHook::OnInflation')