t/lib/TestHelper/Plugin/RepeatFoo.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 2 / 2 Podpod 100% 1 / 1 totaltotal 86.6% 13 / 15 CC 2 SCAR 5.2
CC
2
Cov
91%
transform_source
2.0
BEGIN
1.0
CRAP 1.7
« t/lib/TestHelper/Plugin/UpperText.pm ↑ Summary lib/Code/TidyAll/Cache.pm »
1 package TestHelper::Plugin::RepeatFoo;
2  
3 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 extends 'Code::TidyAll::Plugin';
5  
6 2 has 'times' => ( is => 'ro' );
7  
8 2 ▶sub transform_source {
Subroutine transform_source: called CC=2 SCAR=7.1
Pod documented
9 2 my ( $self, $source ) = @_;
10 2 ▶ my $times = $self->times || die "no times specified";
Condition50%1/2
$self->times || die('no times specified')
l!l
20
MC/DC0%0/1
$self->times || die('no times specified')
$self->times
Truth table50%1/2
A
A= $self->times
Aresult
11
00
11 2 return $source x $times;
12 }
13  
14 2 1;
« t/lib/TestHelper/Plugin/UpperText.pm ↑ Summary lib/Code/TidyAll/Cache.pm »