QUIP/VectorN.pm untested

filter: Statementstmt 0.0% 0 / 10 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 1 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
CRAP 2.0
1 package Evo::QUIP::VectorN;
2  
3 sub new {
4 my ($class, $n) = @_;
5  
6 my $self = { vector => (), };
7  
8 for (my $i = 0; $i < $n; $i++) {
9 push(@{$self->{vector}}, 0);
10 }
11  
12 $class = ref($class) || $class;
13 bless $self, $class;
14 }
15  
16 1;