PIDS/RouteDestination.pm

filter: Statementstmt 50.0% 7 / 14 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 40.0% 2 / 5 Podpod 66.6% 2 / 3 totaltotal 45.8% 11 / 24 CC 3 SCAR 17.9
CC
3
Cov
44%
new
12.0
UpDestination
2.0
DownDestination
2.0
CRAP 6.0
« PIDS/PredictedTime.pm ↑ Summary PIDS/Destination.pm »
1 package WWW::PIDS::RouteDestination;
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 0 ▶sub new {
Subroutine new: not called CC=3 SCAR=24.8
Pod undocumented
7 0 my ( $class, %p ) = @_;
8 0 my $self = bless {} , $class;
9  
10 0 for my $param ( qw(UpDestination DownDestination) ) {
11 defined $p{ $param }
12 0 ▶ ? $self->{ $param } = $p{ $param }
Branch: 1 branch
BranchTrueFalseTotal
defined $p{$param} ? : 0 0 0
13 : die "Mandatory parameter $param not provided to constructor in " . __PACKAGE__ ;
14 }
15
16 0 return $self
17 }
18  
19 0 ▶sub UpDestination { return $_[0]->{ UpDestination } }
Subroutine UpDestination: not called CC=1 SCAR=6.9
Pod documented
20  
21 0 ▶sub DownDestination { return $_[0]->{ DownDestination } }
Subroutine DownDestination: not called CC=1 SCAR=6.9
Pod documented
22  
23 9 1;
24  
25 __END__
« PIDS/PredictedTime.pm ↑ Summary PIDS/Destination.pm »