lib/Net/SinFP3/Next.pm

filter: Statementstmt 72.2% 13 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 100% 2 / 2 totaltotal 66.6% 18 / 27 CC 2 SCAR 10.4
CC
2
Cov
65%
new
6.0
print
2.0
BEGIN
1.0
CRAP 2.8
« lib/Net/SinFP3/Input/Null.pm ↑ Summary lib/Net/SinFP3/Worker/Thread.pm »
1 #
2 # $Id: Next.pm,v 008243d3e89a 2018/07/21 14:54:07 gomor $
3 #
4 package Net::SinFP3::Next;
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 );
12 1 __PACKAGE__->cgBuildIndices;
13 1 __PACKAGE__->cgBuildAccessorsScalar(\@AS);
14  
15 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod documented
16 0 my $self = shift->SUPER::new(
17 @_,
18 );
19  
20 0 ▶ if (!defined($self->global)) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $self->global) 0 0 0
21 0 die("[-] ".__PACKAGE__.": You must provide a global object\n");
22 }
23  
24 0 return $self;
25 }
26  
27 0 ▶sub print {
Subroutine print: not called CC=1 SCAR=6.9
Pod documented
28 0 return '';
29 }
30  
31 1 1;
32  
33 __END__
« lib/Net/SinFP3/Input/Null.pm ↑ Summary lib/Net/SinFP3/Worker/Thread.pm »