App/Plugin/MutexGroup/Meta/Attribute.pm

filter: Statementstmt 95.4% 21 / 22 Branchbran 100% 2 / 2 Conditioncond 66.6% 2 / 3 MC/DCmcdc 50.0% 1 / 2 Subroutinesub 83.3% 5 / 6 Podpod n/a totaltotal 88.5% 31 / 35 CC 3 SCAR 6.3
CC
3
Cov
93%
__ANON__
3.0
register_implementation
2.0
BEGIN
1.0
CRAP 1.9
« App/Plugin/Typo/Meta/Class.pm ↑ Summary App/Plugin/Depends/Meta/Attribute.pm »
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
BranchTrueFalseTotal
if $self->can("mutexgroup") and $self->mutexgroup 8 2 10
Condition66%2/3
$self->can("mutexgroup") and $self->mutexgroup
!ll&&!rl&&r
028
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
ABresult
0X0
100
111
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;
« App/Plugin/Typo/Meta/Class.pm ↑ Summary App/Plugin/Depends/Meta/Attribute.pm »