PIDS/RouteNo.pm

filter: Statementstmt 66.6% 10 / 15 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 1 totaltotal 56.5% 13 / 23 CC 2 SCAR 10.4
CC
2
Cov
59%
new
6.0
__as_string
2.0
BEGIN
1.0
CRAP 2.8
« PIDS/CoreDataChanges.pm ↑ Summary PIDS/PredictedArrivalTimeData.pm »
1 package WWW::PIDS::RouteNo;
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 ▶use overload ( '""' => \&__as_string );
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
9 0 my ( $class, $p ) = @_;
10 0 my $self = bless {}, $class;
11  
12 defined $p->{ 'RouteNo' }
13 0 ▶ ? $self->{ 'RouteNo' } = $p->{ 'RouteNo' }
Branch: 1 branch
BranchTrueFalseTotal
defined $p->{'RouteNo'} ? : 0 0 0
14 : die "Mandatory parameter RouteNo not provided in constructor" ;
15  
16 0 return $self
17 }
18  
19 0 ▶sub __as_string { return "$_[0]->{RouteNo}" }
Subroutine __as_string: not called CC=1 SCAR=6.9
20  
21 9 1;
22  
23 __END__
« PIDS/CoreDataChanges.pm ↑ Summary PIDS/PredictedArrivalTimeData.pm »