Data/Sah/Compiler/human/TH/buf.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 2 totaltotal 93.9% 31 / 33 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Data/Sah/Compiler/perl/TH/obj.pm ↑ Summary Data/Sah/Compiler/human/TH/datetime.pm »
1 package Data::Sah::Compiler::human::TH::buf;
2  
3 2 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 #use Log::Any '$log';
7  
8 2 ▶use Mo qw(build default);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use Role::Tiny::With;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 extends 'Data::Sah::Compiler::human::TH::str';
12  
13 2 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
14 2 our $DATE = '2024-02-16'; # DATE
15 2 our $DIST = 'Data-Sah'; # DIST
16 2 our $VERSION = '0.917'; # VERSION
17  
18 520 ▶sub name { "buffer" }
Subroutine name: called CC=1 SCAR=0.0
Pod undocumented
19  
20 521 ▶sub handle_type {
Subroutine handle_type: called CC=1 SCAR=0.0
Pod undocumented
21 521 my ($self, $cd) = @_;
22 521 my $c = $self->compiler;
23  
24 521 $c->add_ccl($cd, {
25 fmt => ["buffer", "buffers"],
26 type => 'noun',
27 });
28 }
29  
30 2 1;
31 # ABSTRACT: perl's type handler for type "buf"
32  
33 __END__
« Data/Sah/Compiler/perl/TH/obj.pm ↑ Summary Data/Sah/Compiler/human/TH/datetime.pm »