TypeInference/Type/Boolean.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 2 totaltotal 92.0% 23 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« TypeInference/Type/Unknown.pm ↑ Summary
1 package JSON::TypeInference::Type::Boolean;
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 3 ▶use parent qw(JSON::TypeInference::Type::Atom);
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use Types::Serialiser;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶sub name {
Subroutine name: called CC=1 SCAR=0.0
Pod undocumented
9 1 my ($class) = @_;
10 1 return 'boolean';
11 }
12  
13 44 ▶sub accepts {
Subroutine accepts: called CC=1 SCAR=0.0
Pod undocumented
14 44 my ($class, $data) = @_;
15 44 return Types::Serialiser::is_bool($data);
16 }
17  
18 3 1;
19 __END__
« TypeInference/Type/Unknown.pm ↑ Summary