Branch Coverage

blib/lib/MooX/CaptainHook.pm
Criterion Covered Total %
branch 26 30 86.6


line true false branch
24 8 29 if exists $Role::Tiny::INFO{$package}
25 27 2 if exists $Moo::MAKERS{$package}
26 2 0 if ($INC{'Class/MOP.pm'} and my $classof = 'Class::MOP'->can('class_of'))
28 1 1 if $meta and $meta->isa('Moose::Meta::Role')
38 0 31 if defined $key and $already{$key}++
39 1 30 unless $callbacks
68 0 1 unless $MooX::CaptainHook::on_application{$role}
1 8 if MooX::CaptainHook::is_role($package)
70 3 6 unless $MooX::CaptainHook::on_inflation{$role}
88 14 6 unless $meta->isa('Moose::Meta::Role')
131 4 4 unless defined $role
134 5 3 unless Role::Tiny::does_role('Moo::Role', 'MooX::CaptainHook::OnApplication')
152 2 18 unless $MooX::CaptainHook::on_inflation{$pkg}
168 6 10 unless defined $pkg
180 5 0 if 'Moo::HandleMoose'->can('inject_real_metaclass_for') and not Role::Tiny::does_role('Moo::HandleMoose', 'MooX::CaptainHook::OnInflation')