EPL2/Command/Q.pm

filter: Statementstmt 86.6% 26 / 30 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod n/a totaltotal 83.3% 35 / 42 CC 3 SCAR 4.5
CC
3
Cov
82%
__ANON__
2.4
string
2.4
BEGIN
1.0
CRAP 1.6
« EPL2/Command/A.pm ↑ Summary EPL2/Command/P.pm »
1 package EPL2::Command::Q;
2 # ABSTRACT: Q Command (Set Form Length)
3 1 $EPL2::Command::Q::VERSION = '0.001';
4 3 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use MooseX::Method::Signatures;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use EPL2::Types 'Padheight';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 extends 'EPL2::Command';
11  
12 #Public Attributes
13 1 has height => ( is => 'rw', isa => Padheight, default => 0, );
14 1 has continuous => ( is => 'rw', isa => 'Bool', default => 1, );
15  
16 #Methods
17 0 ▶method string ( Str :$delimiter = "\n" ) {
Subroutine BEGIN: called CC=1 SCAR=0.4
Subroutine __ANON__: not called CC=2 SCAR=8.7
Subroutine string: called CC=2 SCAR=8.7
18 0 my $string = sprintf 'Q%d', $self->height;
19 0 ▶ $string .= ',0' if ( $self->continuous );
Branch: 2 branches
BranchTrueFalseTotal
if $self->continuous 0 0 0
if $self->continuous 2 1 3
20 0 return $string . $delimiter;
21 1 }
22  
23 1 __PACKAGE__->meta->make_immutable;
24  
25 1 1;
26  
27 __END__
« EPL2/Command/A.pm ↑ Summary EPL2/Command/P.pm »