File Coverage

blib/lib/Benchmark/Featureset/ParamCheck/Implementation/TypeParams/TypeTiny.pm
Criterion Covered Total %
statement 37 37 100.0
branch n/a
condition n/a
subroutine 14 14 100.0
pod 0 2 0.0
total 51 53 96.2


line stmt bran cond sub pod time code
1 4     4   11913 use v5.12;
  4         16  
2 4     4   19 use strict;
  4         8  
  4         81  
3 4     4   16 use warnings;
  4         13  
  4         238  
4              
5              
6             our $AUTHORITY = 'cpan:TOBYINK';
7             our $VERSION = '0.006';
8              
9             use parent qw(Benchmark::Featureset::ParamCheck::Base);
10 4     4   32 use Ref::Util 0.203 ();
  4         10  
  4         35  
11 4     4   236 use Ref::Util::XS 0.116 ();
  4         56  
  4         91  
12 4     4   22 use Type::Params 1.016004 qw(compile_named compile);
  4         58  
  4         97  
13 4     4   25 use Types::Standard 1.016004 -types;
  4         50  
  4         25  
14 4     4   1353 use Type::Tiny::XS 0.012 ();
  4         58  
  4         33  
15 4     4   16969 use namespace::autoclean;
  4         61  
  4         72  
16 4     4   20  
  4         8  
  4         32  
17             use constant long_name => 'Type::Params with Type::Tiny';
18 4     4   251 use constant short_name => 'TP-TT';
  4         8  
  4         217  
19 4     4   22  
  4         10  
  4         569  
20             state $check = compile_named(
21             integer => Int,
22 58     58 0 187 hashes => ArrayRef[HashRef],
23             object => HasMethods[qw/ print close /],
24             );
25             }
26              
27             state $check = compile(
28             Int,
29             ArrayRef[HashRef],
30 47     47 0 163 HasMethods[qw/ print close /],
31             );
32             }
33              
34             1;