Blitz/Sprint.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 32 CC 2 SCAR 12.0
CC
2
Cov
0%
new
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.3
1 package Blitz::Sprint;
2  
3 use strict;
4 use warnings;
5  
6 use Blitz::Exercise;
7 use base qw(Blitz::Exercise);
8  
9 =head1 NAME
10  
11 Blitz::Sprint - Perl module for executing sprints on Blitz.io
12 Subclass of Blitz::Exercise
13  
14 =head1 SUBROUTINES/METHODS
15  
16 =head2 new
17  
18 create a new sprint object
19  
20 =cut
21  
22 sub new {
23 my $class = shift;
24
25 my $return = $class->SUPER::new(@_);
26 if ($return->{options} && $return->{options}{pattern}) {
27 delete($return->{options}{pattern});
28 }
29 $return->{test_type} = 'sprint';
30 return $return;
31 }
32  
33 return 1;