ParamCheck/Implementation/PV/TypeTiny.pm

filter: Statementstmt 100% 37 / 37 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 13 / 13 Podpod 0.0% 0 / 2 totaltotal 96.1% 50 / 52 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« ParamCheck/Implementation/MXPV/TypeTiny.pm ↑ Summary ParamCheck/Implementation/PVC/Specio.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::PV::TypeTiny;
6  
7 4 our $AUTHORITY = 'cpan:TOBYINK';
8 4 our $VERSION = '0.006';
9  
10 4 ▶use parent qw(Benchmark::Featureset::ParamCheck::Base::PV);
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 Types::Standard 1.001_009 -types;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 4 ▶use Type::Tiny::XS 0.012 ();
Subroutine BEGIN: called CC=1 SCAR=0.0
15 4 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 4 ▶use constant long_name => 'Params::Validate with Type::Tiny';
Subroutine BEGIN: called CC=1 SCAR=0.0
18 4 ▶use constant short_name => 'PV-TT';
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 sub get_named_check {
21 158 ▶ state $check = {
Subroutine get_named_check: called CC=1 SCAR=0.0
Pod undocumented
22 integer => { callbacks => { typecheck => (Int)->compiled_check } },
23 hashes => { callbacks => { typecheck => (ArrayRef[HashRef])->compiled_check } },
24 object => { callbacks => { typecheck => (HasMethods[qw/ print close /])->compiled_check } },
25 };
26 }
27  
28 sub get_positional_check {
29 87 ▶ state $check = [
Subroutine get_positional_check: called CC=1 SCAR=0.0
Pod undocumented
30 { callbacks => { typecheck => (Int)->compiled_check } },
31 { callbacks => { typecheck => (ArrayRef[HashRef])->compiled_check } },
32 { callbacks => { typecheck => (HasMethods[qw/ print close /])->compiled_check } },
33 ];
34 }
35  
36 4 1;
« ParamCheck/Implementation/MXPV/TypeTiny.pm ↑ Summary ParamCheck/Implementation/PVC/Specio.pm »