TypeInference/Type/Null.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 90.4% 19 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« TypeInference/Type/Atom.pm ↑ Summary TypeInference/Type/Unknown.pm »
1 package JSON::TypeInference::Type::Null;
2 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use parent qw(JSON::TypeInference::Type::Atom);
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶sub name {
Subroutine name: called CC=1 SCAR=0.0
Pod undocumented
7 1 my ($class) = @_;
8 1 return 'null';
9 }
10  
11 36 ▶sub accepts {
Subroutine accepts: called CC=1 SCAR=0.0
Pod undocumented
12 36 my ($class, $data) = @_;
13 36 return !defined($data);
14 }
15  
16 4 1;
17 __END__
« TypeInference/Type/Atom.pm ↑ Summary TypeInference/Type/Unknown.pm »