Data/Sah/Compiler/js/TH/undef.pm

filter: Statementstmt 82.6% 19 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 80.0% 24 / 30 CC 1 SCAR 1.5
CC
1
Cov
83%
handle_type
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Data/Sah/Compiler/js/TH/re.pm ↑ Summary Data/Sah/Compiler/js/TH/all.pm »
1 package Data::Sah::Compiler::js::TH::undef;
2  
3 1 our $DATE = '2016-09-14'; # DATE
4 1 our $VERSION = '0.87'; # VERSION
5  
6 1 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 #use Log::Any '$log';
10  
11 1 ▶use Mo qw(build default);
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use Role::Tiny::With;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 extends 'Data::Sah::Compiler::js::TH';
15 1 with 'Data::Sah::Type::undef';
16  
17 0 ▶sub handle_type {
Subroutine handle_type: not called CC=1 SCAR=6.9
Pod undocumented
18 0 my ($self, $cd) = @_;
19 0 my $c = $self->compiler;
20  
21 0 my $dt = $cd->{data_term};
22 0 $cd->{_ccl_check_type} = "$dt === undefined || $dt === null";
23 }
24  
25 1 1;
26 # ABSTRACT: js's type handler for type "re"
27  
28 __END__
« Data/Sah/Compiler/js/TH/re.pm ↑ Summary Data/Sah/Compiler/js/TH/all.pm »