| 1 | # ============================================================================ | ||||||||||||||||||||||||||||
| 2 | package MooseX::App::Plugin::Depends::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 | has 'depends' => ( | ||||||||||||||||||||||||||||
| 9 | is => 'ro', | ||||||||||||||||||||||||||||
| 10 | isa => 'ArrayRef[Str]', | ||||||||||||||||||||||||||||
| 11 | 5 | ▶ | default => sub { [] }, | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 12 | 3 | ); | |||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||
| 14 | 11 | ▶ | around 'cmd_tags_list' => sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=3 SCAR=11.8
| |||||||||||||||||||||||||||||
| 15 | 11 | my $orig = shift; | |||||||||||||||||||||||||||
| 16 | 11 | my ($self) = @_; | |||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||
| 18 | 11 | my @tags = $self->$orig(); | |||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||
| 20 | 11 | ▶ | push(@tags,'Depends') | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$self->can("depends") and $self->depends
MC/DC0%0/2
$self->can("depends") and $self->depends
$self->can("depends")
$self->depends
Truth table33%1/3
A and B
A= $self->can("depends")B= $self->depends
| |||||||||||||||||||||||||||||
| 21 | if $self->can('depends') | ||||||||||||||||||||||||||||
| 22 | && $self->depends; | ||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||
| 24 | 11 | return @tags; | |||||||||||||||||||||||||||
| 25 | 3 | }; | |||||||||||||||||||||||||||
| 26 | |||||||||||||||||||||||||||||
| 27 | { | ||||||||||||||||||||||||||||
| 28 | package Moose::Meta::Attribute::Custom::Trait::AppDepends; | ||||||||||||||||||||||||||||
| 29 | |||||||||||||||||||||||||||||
| 30 | 3 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 31 | 3 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||
| 33 | 0 | ▶ | sub register_implementation { return 'MooseX::App::Plugin::Depends::Meta::Attribute' } | ||||||||||||||||||||||||||
|
Subroutine
register_implementation: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||
| 34 | } | ||||||||||||||||||||||||||||
| 35 | |||||||||||||||||||||||||||||
| 36 | 3 | 1; | |||||||||||||||||||||||||||