PIDS/CoreDataChanges.pm

filter: Statementstmt 44.4% 8 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 2 / 6 Podpod 75.0% 3 / 4 totaltotal 43.3% 13 / 30 CC 3 SCAR 17.0
CC
3
Cov
40%
new
12.0
RouteChanges
2.0
StopChanges
2.0
CRAP 5.5
« PIDS/RouteSummary.pm ↑ Summary PIDS/RouteNo.pm »
1 package WWW::PIDS::CoreDataChanges;
2  
3 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 9 our @ATTR = qw(RouteChanges ServerTime StopChanges);
7  
8 0 ▶sub new {
Subroutine new: not called CC=3 SCAR=24.8
Pod undocumented
9 0 my ( $class, %obj ) = @_;
10 0 my $self = bless {}, $class;
11  
12 0 for my $a ( @ATTR ) {
13 defined $obj{ $a }
14 0 ▶ ? $self->{ $a } = $obj{ $a }
Branch: 1 branch
BranchTrueFalseTotal
defined $obj{$a} ? : 0 0 0
15 : die "Mandatory parameter $a not supplied to constructor"
16 }
17  
18 0 return $self
19 }
20  
21 0 ▶sub RouteChanges { return @{ shift->{RouteChanges} } }
Subroutine RouteChanges: not called CC=1 SCAR=6.9
Pod documented
22  
23 0 ▶sub StopChanges { return @{ shift->{StopChanges} } }
Subroutine StopChanges: not called CC=1 SCAR=6.9
Pod documented
24  
25 0 ▶sub ServerTime { return shift->{ServerTime} }
Subroutine ServerTime: not called CC=1 SCAR=6.9
Pod documented
26  
27 9 1;
28  
29 __END__
« PIDS/RouteSummary.pm ↑ Summary PIDS/RouteNo.pm »