« ParamCheck/Implementation/PVC/TypeTiny.pm
↑ Summary
ParamCheck/Implementation/TypeParams/TypeTiny.pm »
| 1 | 4 | ▶ | use v5.12; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 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 | |||
| 5 | package Benchmark::Featureset::ParamCheck::Implementation::TypeParams::Specio; | ||
| 6 | |||
| 7 | 4 | our $AUTHORITY = 'cpan:TOBYINK'; | |
| 8 | 4 | our $VERSION = '0.006'; | |
| 9 | |||
| 10 | 4 | ▶ | use parent qw(Benchmark::Featureset::ParamCheck::Base); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 4 | ▶ | use Ref::Util 0.203 (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 4 | ▶ | use Ref::Util::XS 0.116 (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 4 | ▶ | use Type::Params 1.016004 qw(compile_named compile); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 4 | ▶ | use Specio::Declare 0.37; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 4 | ▶ | use Specio::Library::Builtins 0.37; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 4 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | |||
| 18 | 4 | ▶ | use constant long_name => 'Type::Params with Specio'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | 4 | ▶ | use constant short_name => 'TP-Specio'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | |||
| 21 | sub get_named_check { | ||
| 22 | 78 | ▶ | state $check = compile_named( |
|
Subroutine
get_named_check: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 23 | integer => t('Int'), | ||
| 24 | hashes => t('ArrayRef', of => t('HashRef')), | ||
| 25 | object => object_can_type('Printable', methods => [qw/ print close /]), | ||
| 26 | ); | ||
| 27 | } | ||
| 28 | |||
| 29 | sub get_positional_check { | ||
| 30 | 87 | ▶ | state $check = compile( |
|
Subroutine
get_positional_check: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 31 | t('Int'), | ||
| 32 | t('ArrayRef', of => t('HashRef')), | ||
| 33 | object_can_type('Printable', methods => [qw/ print close /]), | ||
| 34 | ); | ||
| 35 | } | ||
| 36 | |||
| 37 | 4 | 1; | |