App/Plugin/Version/Meta/Class.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 93.3% 28 / 30 CC 2 SCAR 2.5
CC
2
Cov
96%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« App/Plugin/BashCompletion/Meta/Class.pm ↑ Summary App/Plugin/ConfigHome.pm »
1 # ============================================================================
2 package MooseX::App::Plugin::Version::Meta::Class;
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 4 ▶use MooseX::App::Plugin::Version::Command;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 3 ▶around '_build_app_commands' => sub {
Subroutine __ANON__: called CC=2 SCAR=7.0
14 3 my $orig = shift;
15 3 my $self = shift;
16  
17 3 my $return = $self->$orig(@_);
18 3 ▶ $return->{version} ||= 'MooseX::App::Plugin::Version::Command';
Condition50%1/2
$return->{"version"} ||= "MooseX::App::Plugin::Version::Command"
l!l
03
MC/DC0%0/1
$return->{"version"} ||= "MooseX::App::Plugin::Version::Command"
$return->{"version"}
Truth table50%1/2
A
A= $return->{"version"}
Aresult
11
00
19  
20 3 return $return;
21 4 };
22  
23 4 1;
« App/Plugin/BashCompletion/Meta/Class.pm ↑ Summary App/Plugin/ConfigHome.pm »