blib/lib/Class/Null.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod n/a totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 3 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package Class::Null;
6 3 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 $Class::Null::VERSION = '2.110730';
8 }
9 # ABSTRACT: Implements the Null Class design pattern
10 use overload
11 2 ▶ 'bool' => sub { 0 },
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
12 122 ▶ '""' => sub { '' },
Subroutine __ANON__: called CC=1 SCAR=0.0
13 6 ▶ '0+' => sub { 0 },
Subroutine __ANON__: called CC=1 SCAR=0.0
14 3 fallback => 1;
15 3 our $null = bless {}, __PACKAGE__;
16 167 ▶sub AUTOLOAD { $null }
Subroutine AUTOLOAD: called CC=1 SCAR=0.0
17 3 1;
18  
19  
20 __END__
↑ Summary