| 1 | # ============================================================================ | ||||||||||||||||||||||||||||
| 2 | package MooseX::App::Plugin::BashCompletion; | ||||||||||||||||||||||||||||
| 3 | # ============================================================================ | ||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | 4 | ▶ | use 5.010; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | 4 | ▶ | use utf8; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | 4 | ▶ | use namespace::autoclean; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 9 | 4 | ▶ | use Moose::Role; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||
| 11 | 3 | ▶ | sub plugin_metaroles { | ||||||||||||||||||||||||||
|
Subroutine
plugin_metaroles: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 12 | 3 | my ($self,$class) = @_; | |||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||
| 14 | return { | ||||||||||||||||||||||||||||
| 15 | 3 | class => ['MooseX::App::Plugin::BashCompletion::Meta::Class'], | |||||||||||||||||||||||||||
| 16 | } | ||||||||||||||||||||||||||||
| 17 | } | ||||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||
| 19 | 35 | ▶ | around 'initialize_command_class' => sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=3 SCAR=11.0
| |||||||||||||||||||||||||||||
| 20 | 35 | my $orig = shift; | |||||||||||||||||||||||||||
| 21 | 35 | my $self = shift; | |||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||
| 23 | 35 | my $return = $self->$orig(@_); | |||||||||||||||||||||||||||
| 24 | 34 | ▶ | if (blessed $return | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
builtin::blessed($return) and $return->isa("MooseX::App::Plugin::BashCompletion::Command")
MC/DC50%1/2
builtin::blessed($return) and $return->isa("MooseX::App::Plugin::BashCompletion::Command")
builtin::blessed($return)
$return->isa("MooseX::App::Plugin::BashCompletion::Command")
Truth table66%2/3
A and B
A= builtin::blessed($return)B= $return->isa("MooseX::App::Plugin::BashCompletion::Command")
| |||||||||||||||||||||||||||||
| 25 | && $return->isa('MooseX::App::Plugin::BashCompletion::Command')) { | ||||||||||||||||||||||||||||
| 26 | 1 | return $return->bash_completion($self); | |||||||||||||||||||||||||||
| 27 | } | ||||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||
| 29 | 33 | return $return; | |||||||||||||||||||||||||||
| 30 | 4 | }; | |||||||||||||||||||||||||||
| 31 | |||||||||||||||||||||||||||||
| 32 | 4 | 1; | |||||||||||||||||||||||||||
| 33 | |||||||||||||||||||||||||||||
| 34 | __END__ | ||||||||||||||||||||||||||||