App/Plugin/Man.pm

filter: Statementstmt 61.9% 13 / 21 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 66.6% 4 / 6 Podpod 0.0% 0 / 1 totaltotal 48.5% 17 / 35 CC 3 SCAR 16.6
CC
3
Cov
50%
__ANON__
12.0
plugin_metaroles
2.0
BEGIN
1.0
CRAP 5.2
« App/Simple.pm ↑ Summary App/Meta/Role/Class/Documentation.pm »
1 # ============================================================================
2 package MooseX::App::Plugin::Man;
3 # ============================================================================
4  
5 1 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 0 ▶sub plugin_metaroles {
Subroutine plugin_metaroles: not called CC=1 SCAR=6.9
Pod undocumented
12 0 my ($self,$class) = @_;
13  
14 return {
15 0 class => ['MooseX::App::Plugin::Man::Meta::Class'],
16 }
17 }
18  
19 0 ▶around 'initialize_command_class' => sub {
Subroutine __ANON__: not called CC=3 SCAR=24.8
20 0 my $orig = shift;
21 0 my $self = shift;
22  
23 0 my $return = $self->$orig(@_);
24 0 ▶ if (blessed $return
Branch: 1 branch
BranchTrueFalseTotal
if (builtin::blessed($return) and $return->isa("MooseX::App::Plugin::Man::Command")) 0 0 0
Condition0%0/3
builtin::blessed($return) and $return->isa("MooseX::App::Plugin::Man::Command")
!ll&&!rl&&r
000
MC/DC0%0/2
builtin::blessed($return) and $return->isa("MooseX::App::Plugin::Man::Command")
builtin::blessed($return) $return->isa("MooseX::App::Plugin::Man::Command")
Truth table0%0/3
A and B
A= builtin::blessed($return)B= $return->isa("MooseX::App::Plugin::Man::Command")
ABresult
0X0
100
111
25 && $return->isa('MooseX::App::Plugin::Man::Command')) {
26 0 return $return->man($self);
27 }
28  
29 0 return $return;
30 1 };
31 1 1;
32  
33 __END__
« App/Simple.pm ↑ Summary App/Meta/Role/Class/Documentation.pm »