App/Plugin/Version.pm

filter: Statementstmt 100% 21 / 21 Branchbran 100% 2 / 2 Conditioncond 66.6% 2 / 3 MC/DCmcdc 50.0% 1 / 2 Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 91.4% 32 / 35 CC 3 SCAR 5.6
CC
3
Cov
96%
__ANON__
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.8
« App/Plugin/BashCompletion.pm ↑ Summary App/Plugin/Version/Command.pm »
1 # ============================================================================
2 package MooseX::App::Plugin::Version;
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::Version::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
BranchTrueFalseTotal
if (builtin::blessed($return) and $return->isa("MooseX::App::Plugin::Version::Command")) 1 33 34
Condition66%2/3
builtin::blessed($return) and $return->isa("MooseX::App::Plugin::Version::Command")
!ll&&!rl&&r
0331
MC/DC50%1/2
builtin::blessed($return) and $return->isa("MooseX::App::Plugin::Version::Command")
builtin::blessed($return) $return->isa("MooseX::App::Plugin::Version::Command")
Truth table66%2/3
A and B
A= builtin::blessed($return)B= $return->isa("MooseX::App::Plugin::Version::Command")
ABresult
0X0
100
111
25 && $return->isa('MooseX::App::Plugin::Version::Command')) {
26 1 return $return->version($self);
27 }
28  
29 33 return $return;
30 4 };
31  
32 4 1;
33  
34 __END__
« App/Plugin/BashCompletion.pm ↑ Summary App/Plugin/Version/Command.pm »