PIDS/StopChange.pm

filter: Statementstmt 68.4% 13 / 19 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 1 totaltotal 59.2% 16 / 27 CC 3 SCAR 17.5
CC
3
Cov
62%
new
12.0
__ANON__
1.1
BEGIN
1.0
CRAP 5.7
« PIDS/ScheduledTime.pm ↑ Summary PIDS/StopInformation.pm »
1 package WWW::PIDS::StopChange;
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(Action StopNo);
7  
8 {
9 9 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
10
11 0 ▶ *$_ = sub { return shift->{ $_ } } for ( @ATTR );
Subroutine __ANON__: not called CC=1 SCAR=1.2
12 }
13  
14 0 ▶sub new {
Subroutine new: not called CC=3 SCAR=24.8
Pod undocumented
15 0 my ( $class, $obj ) = @_;
16 0 my $self = bless {} , $class;
17  
18 0 for my $a ( @ATTR ) {
19 defined $obj->{ $a }
20 0 ▶ ? $self->{ $a } = $obj->{ $a }
Branch: 1 branch
BranchTrueFalseTotal
defined $obj->{$a} ? : 0 0 0
21 : die "Mandatory parameter $a not supplied to constructor"
22 }
23  
24 0 return $self
25 }
26  
27 9 1;
28  
29 __END__
« PIDS/ScheduledTime.pm ↑ Summary PIDS/StopInformation.pm »