| 1 | # ============================================================================ | ||||||||||||||||||||||||||||
| 2 | package MooseX::App::Plugin::MutexGroup::Meta::Attribute; | ||||||||||||||||||||||||||||
| 3 | # ============================================================================ | ||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | 3 | ▶ | use Moose::Role; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | 3 | ▶ | use namespace::autoclean; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | 3 | has 'mutexgroup' => ( | |||||||||||||||||||||||||||
| 9 | is => 'ro', | ||||||||||||||||||||||||||||
| 10 | isa => 'Str', | ||||||||||||||||||||||||||||
| 11 | ); | ||||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | 10 | ▶ | around 'cmd_tags_list' => sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=3 SCAR=11.0
| |||||||||||||||||||||||||||||
| 14 | 10 | my $orig = shift; | |||||||||||||||||||||||||||
| 15 | 10 | my ($self) = @_; | |||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||
| 17 | 10 | my @tags = $self->$orig(); | |||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||
| 19 | 10 | ▶ | push(@tags,'MutexGroup') | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$self->can("mutexgroup") and $self->mutexgroup
MC/DC50%1/2
$self->can("mutexgroup") and $self->mutexgroup
$self->can("mutexgroup")
$self->mutexgroup
Truth table66%2/3
A and B
A= $self->can("mutexgroup")B= $self->mutexgroup
| |||||||||||||||||||||||||||||
| 20 | if $self->can('mutexgroup') | ||||||||||||||||||||||||||||
| 21 | && $self->mutexgroup; | ||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||
| 23 | 10 | return @tags; | |||||||||||||||||||||||||||
| 24 | 3 | }; | |||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||
| 26 | { | ||||||||||||||||||||||||||||
| 27 | package Moose::Meta::Attribute::Custom::Trait::AppMutexGroup; | ||||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||
| 29 | 3 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 30 | 3 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 31 | |||||||||||||||||||||||||||||
| 32 | 0 | ▶ | sub register_implementation { return 'MooseX::App::Plugin::MutexGroup::Meta::Attribute' } | ||||||||||||||||||||||||||
|
Subroutine
register_implementation: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 33 | } | ||||||||||||||||||||||||||||
| 34 | |||||||||||||||||||||||||||||
| 35 | 3 | 1; | |||||||||||||||||||||||||||