Moose/Sweep/Step/Repeat.pm

filter: Statementstmt 95.4% 21 / 22 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 90.3% 28 / 31 CC 2 SCAR 2.7
CC
2
Cov
92%
BUILD
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Moose/Connection.pm ↑ Summary Moose/Instrument/OI_ILM210.pm »
1 package Lab::Moose::Sweep::Step::Repeat;
2 2 $Lab::Moose::Sweep::Step::Repeat::VERSION = '3.931';
3 #ABSTRACT: Repeat something (e.g. some sweep) N times
4  
5 2 ▶use v5.20;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7  
8 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 extends 'Lab::Moose::Sweep::Step';
11  
12 2 has filename_extension => ( is => 'ro', isa => 'Str', default => 'Repeat=' );
13 2 has count => (is => 'ro', isa => 'Lab::Moose::PosInt', required => 1);
14 2 has setter => (is => 'ro', isa => 'CodeRef', builder => '_build_setter');
15  
16 1 ▶sub _build_setter {
Subroutine _build_setter: called CC=1 SCAR=0.0
17 1 ▶ return sub {};
Subroutine __ANON__: called CC=1 SCAR=0.0
18 }
19  
20 1 ▶sub BUILD {
Subroutine BUILD: called CC=2 SCAR=7.2
Pod undocumented
21 1 my $self = shift;
22 1 my $count = $self->count;
23 1 ▶ if ($count < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if ($count < 1) 0 1 1
24 0 croak "count must be a positive integer";
25 }
26 1 my @list = (1..$self->count);
27 1 $self->_list(\@list);
28 }
29  
30 2 __PACKAGE__->meta->make_immutable();
31 2 1;
32  
33 __END__
« Moose/Connection.pm ↑ Summary Moose/Instrument/OI_ILM210.pm »