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   11592 use v5.12;
  4         13  
2 4     4   19 use strict;
  4         9  
  4         71  
3 4     4   16 use warnings;
  4         8  
  4         262  
4              
5              
6             our $AUTHORITY = 'cpan:TOBYINK';
7             our $VERSION = '0.007';
8              
9             use parent qw(Benchmark::Featureset::ParamCheck::Base);
10 4     4   24 use Ref::Util 0.203 ();
  4         9  
  4         22  
11 4     4   251 use Ref::Util::XS 0.116 ();
  4         52  
  4         74  
12 4     4   18 use Type::Params 1.016004 qw(compile_named compile);
  4         45  
  4         85  
13 4     4   19 use Types::Standard 1.016004 -types;
  4         47  
  4         21  
14 4     4   1425 use Type::Tiny::XS 0.012 ();
  4         54  
  4         20  
15 4     4   24445 use namespace::autoclean;
  4         70  
  4         70  
16 4     4   19  
  4         8  
  4         32  
17             use constant long_name => 'Type::Params with Type::Tiny';
18 4     4   261 use constant short_name => 'TP-TT';
  4         8  
  4         207  
19 4     4   18  
  4         8  
  4         494  
20             state $check = compile_named(
21             integer => Int,
22 118     118 0 400 hashes => ArrayRef[HashRef],
23             object => HasMethods[qw/ print close /],
24             );
25             }
26              
27             state $check = compile(
28             Int,
29             ArrayRef[HashRef],
30 107     107 0 278 HasMethods[qw/ print close /],
31             );
32             }
33              
34             1;