File Coverage

blib/lib/Benchmark/Featureset/ParamCheck/Implementation/MXPV/TypeTiny.pm
Criterion Covered Total %
statement 34 34 100.0
branch n/a
condition n/a
subroutine 13 13 100.0
pod 0 2 0.0
total 47 49 95.9


line stmt bran cond sub pod time code
1 4     4   13090 use v5.12;
  4         13  
2 4     4   18 use strict;
  4         11  
  4         82  
3 4     4   18 use warnings;
  4         8  
  4         240  
4              
5              
6             our $AUTHORITY = 'cpan:TOBYINK';
7             our $VERSION = '0.006';
8              
9             use parent qw(Benchmark::Featureset::ParamCheck::Base::MXPV);
10 4     4   27 use Ref::Util 0.203 ();
  4         8  
  4         28  
11 4     4   272 use Ref::Util::XS 0.116 ();
  4         66  
  4         97  
12 4     4   23 use Types::Standard 1.001_009 -types;
  4         70  
  4         109  
13 4     4   23 use Type::Tiny::XS 0.012 ();
  4         65  
  4         47  
14 4     4   18131 use namespace::autoclean;
  4         84  
  4         72  
15 4     4   21  
  4         8  
  4         27  
16             use constant long_name => 'MooseX::Params::Validate with Type::Tiny';
17 4     4   231 use constant short_name => 'MXPV-TT';
  4         10  
  4         243  
18 4     4   30  
  4         15  
  4         564  
19             state $check = {
20             integer => { isa => Int },
21 58     58 0 188 hashes => { isa => ArrayRef[HashRef] },
22             object => { isa => HasMethods[qw/ print close /] },
23             };
24             }
25              
26             state $check = [
27             { isa => Int },
28             { isa => ArrayRef[HashRef] },
29 47     47 0 181 { isa => HasMethods[qw/ print close /] },
30             ];
31             }
32              
33             1;