Data/Sah/Compiler/Prog/TH/all.pm

filter: Statementstmt 100% 27 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 2 totaltotal 94.4% 34 / 36 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Data/Sah/Compiler/human/TH/undef.pm ↑ Summary Data/Sah/Compiler/Prog/TH/any.pm »
1 package Data::Sah::Compiler::Prog::TH::all;
2  
3 3 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 #use Log::Any '$log';
7  
8 3 ▶use Mo qw(build default);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 3 ▶use Role::Tiny::With;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 3 extends 'Data::Sah::Compiler::Prog::TH';
12 3 with 'Data::Sah::Type::all';
13  
14 3 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
15 3 our $DATE = '2024-02-16'; # DATE
16 3 our $DIST = 'Data-Sah'; # DIST
17 3 our $VERSION = '0.917'; # VERSION
18  
19 12 ▶sub handle_type {
Subroutine handle_type: called CC=1 SCAR=0.0
Pod undocumented
20 12 my ($self, $cd) = @_;
21 12 my $c = $self->compiler;
22  
23 12 my $dt = $cd->{data_term};
24 12 $cd->{_ccl_check_type} = $c->true;
25 }
26  
27 12 ▶sub clause_of {
Subroutine clause_of: called CC=1 SCAR=0.0
Pod undocumented
28 12 my ($self, $cd) = @_;
29 12 $self->gen_any_or_all_of("all", $cd);
30 }
31  
32 3 1;
33 # ABSTRACT: Base class for programming language compiler handler for type "all"
34  
35 __END__
« Data/Sah/Compiler/human/TH/undef.pm ↑ Summary Data/Sah/Compiler/Prog/TH/any.pm »