lib/Net/SinFP3/Input.pm

filter: Statementstmt 48.3% 15 / 31 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 33.3% 3 / 9 Podpod 100% 6 / 6 totaltotal 43.6% 24 / 55 CC 4 SCAR 15.9
CC
4
Cov
39%
run
12.0
new
6.0
init
2.0
CRAP 4.9
« lib/Net/SinFP3/Next/IpPort.pm ↑ Summary lib/Net/SinFP3/Input/Null.pm »
1 #
2 # $Id: Input.pm,v 008243d3e89a 2018/07/21 14:54:07 gomor $
3 #
4 package Net::SinFP3::Input;
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use base qw(Class::Gomor::Array);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 our @AS = qw(
10 global
11 last
12 );
13 1 our @AA = qw(
14 nextList
15 );
16 1 __PACKAGE__->cgBuildIndices;
17 1 __PACKAGE__->cgBuildAccessorsScalar(\@AS);
18 1 __PACKAGE__->cgBuildAccessorsArray (\@AA);
19  
20 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod documented
21 0 my $self = shift->SUPER::new(
22 last => 0,
23 nextList => [ 1 ],
24 @_,
25 );
26  
27 0 ▶ if (!defined($self->global)) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $self->global) 0 0 0
28 0 die("[-] ".__PACKAGE__.": You must provide a global object\n");
29 }
30  
31 0 return $self;
32 }
33  
34 0 ▶sub init {
Subroutine init: not called CC=1 SCAR=6.9
Pod documented
35 0 my $self = shift;
36 0 return $self;
37 }
38  
39 0 ▶sub run {
Subroutine run: not called CC=3 SCAR=24.8
Pod documented
40 0 my $self = shift;
41 0 ▶ if ($self->last || $self->nextList == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->last or $self->nextList == 0) 0 0 0
Condition0%0/3
$self->last or $self->nextList == 0
l!l&&r!l&&!r
000
MC/DC0%0/2
$self->last or $self->nextList == 0
$self->last $self->nextList == 0
Truth table0%0/3
A or B
A= $self->lastB= $self->nextList == 0
ABresult
1X1
011
000
42 0 return;
43 }
44 0 return $self;
45 }
46  
47 0 ▶sub postRun {
Subroutine postRun: not called CC=1 SCAR=6.9
Pod documented
48 0 my $self = shift;
49 0 return $self;
50 }
51  
52 0 ▶sub post {
Subroutine post: not called CC=1 SCAR=6.9
Pod documented
53 0 my $self = shift;
54 0 return $self;
55 }
56  
57 0 ▶sub postFork {
Subroutine postFork: not called CC=1 SCAR=6.9
Pod documented
58 0 my $self = shift;
59 0 return $self;
60 }
61  
62 1 1;
63  
64 __END__
« lib/Net/SinFP3/Next/IpPort.pm ↑ Summary lib/Net/SinFP3/Input/Null.pm »