App/Chart/Math/Moving.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 28 CC 2 SCAR 12.0
CC
2
Cov
0%
new
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.3
1 # Copyright 2011 Kevin Ryde
2  
3 # This file is part of Chart.
4 #
5 # Chart is free software; you can redistribute it and/or modify it under the
6 # terms of the GNU General Public License as published by the Free Software
7 # Foundation; either version 3, or (at your option) any later version.
8 #
9 # Chart is distributed in the hope that it will be useful, but WITHOUT ANY
10 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12 # details.
13 #
14 # You should have received a copy of the GNU General Public License along
15 # with Chart. If not, see <http://www.gnu.org/licenses/>.
16  
17 package App::Chart::Math::Moving;
18 require 5;
19 use strict;
20  
21 use constant warmup_count => 0;
22 use constant parameter_info_array => [];
23  
24 sub new {
25 my $class = shift;
26 my $self = bless { @_ }, $class;
27 foreach my $pinfo (@{$self->parameter_info_array}) {
28 if (! exists $self->{$pinfo->{'name'}}) {
29 $self->{$pinfo->{'name'}} = $pinfo->{'default'};
30 }
31 }
32 }
33  
34 1;
35 __END__