lib/Net/SinFP3/Next/Active.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 29 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
print
2.0
BEGIN
2.0
CRAP 2.0
1 #
2 # $Id: Active.pm,v 008243d3e89a 2018/07/21 14:54:07 gomor $
3 #
4 package Net::SinFP3::Next::Active;
5 use strict;
6 use warnings;
7  
8 use base qw(Net::SinFP3::Next);
9 our @AS = qw(
10 s1
11 s2
12 s3
13 );
14 __PACKAGE__->cgBuildIndices;
15 __PACKAGE__->cgBuildAccessorsScalar(\@AS);
16  
17 use Net::SinFP3::Ext::S;
18  
19 sub new {
20 my $self = shift->SUPER::new(
21 s1 => Net::SinFP3::Ext::S->new,
22 s2 => Net::SinFP3::Ext::S->new,
23 s3 => Net::SinFP3::Ext::S->new,
24 @_,
25 );
26  
27 return $self;
28 }
29  
30 sub print {
31 my $self = shift;
32  
33 my $buf = 'S1: '.$self->s1->print.' '.
34 'S2: '.$self->s2->print.' '.
35 'S3: '.$self->s3->print;
36  
37 return $buf;
38 }
39  
40 1;
41  
42 __END__