blib/lib/Perl/Type/Void.pm

filter: Statementstmt 96.9% 32 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.9% 10 / 11 Podpod n/a totaltotal 95.4% 42 / 44 CC 1 SCAR 0.9
CC
1
Cov
97%
Perl__Type__Void__MODE_ID
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« blib/script/refactor_names_map_create_groups.pl ↑ Summary blib/lib/Perl/Type/Scalar.pm »
1 # [[[ HEADER ]]]
2 package Perl::Type::Void;
3 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 5 ▶use Perl::Config; # don't use Perl::Types inside itself, in order to avoid circular includes
Subroutine BEGIN: called CC=1 SCAR=0.0
6 5 our $VERSION = 0.003_000;
7  
8 # [[[ OO INHERITANCE ]]]
9 5 ▶use parent qw(Perl::Type);
Subroutine BEGIN: called CC=1 SCAR=0.0
10 5 ▶use Perl::Type;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 # [[[ CRITICS ]]]
13 ## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator
14 ## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils
15 ## no critic qw(Capitalization ProhibitMultiplePackages ProhibitReusedNames) # SYSTEM DEFAULT 3: allow multiple & lower case package names
16  
17 # [[[ SUB-TYPES ]]]
18 # void means no type, void does NOT mean unknown data type, that is Perl::Type::Unknown
19 package void;
20 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 5 ▶use parent qw(Perl::Type::Void);
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 # DEV NOTE, CORRELATION #rp018: Perl::Type::*.pm files do not 'use RPerl;' and thus do not trigger the pseudo-source-filter contained in
25 # RPerl::CompileUnit::Module::Class::create_symtab_entries_and_accessors_mutators(),
26 # so *__MODE_ID() subroutines are hard-coded here instead of auto-generated there
27 package main;
28 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
30 0 ▶sub Perl__Type__Void__MODE_ID { return 0; }
Subroutine Perl__Type__Void__MODE_ID: not called CC=1 SCAR=6.9
31  
32 5 1; # end of class
« blib/script/refactor_names_map_create_groups.pl ↑ Summary blib/lib/Perl/Type/Scalar.pm »