File Coverage

blib/lib/Benchmark/Featureset/ParamCheck/Implementation/TypeParams2/TypeTiny.pm
Criterion Covered Total %
statement 40 40 100.0
branch n/a
condition n/a
subroutine 15 15 100.0
pod 0 2 0.0
total 55 57 96.4


line stmt bran cond sub pod time code
1 4     4   11269 use v5.12;
  4         13  
2 4     4   18 use strict;
  4         9  
  4         67  
3 4     4   17 use warnings;
  4         8  
  4         230  
4              
5              
6             our $AUTHORITY = 'cpan:TOBYINK';
7             our $VERSION = '0.007';
8              
9             use parent qw(Benchmark::Featureset::ParamCheck::Base);
10 4     4   20 use Ref::Util 0.203 ();
  4         15  
  4         197  
11 4     4   232 use Ref::Util::XS 0.116 ();
  4         50  
  4         64  
12 4     4   15 use Type::Params 2.000000 qw(signature);
  4         41  
  4         69  
13 4     4   17 use Types::Standard 1.016004 -types;
  4         42  
  4         21  
14 4     4   1113 use Type::Tiny::XS 0.012 ();
  4         54  
  4         17  
15 4     4   24588 use namespace::autoclean;
  4         83  
  4         81  
16 4     4   20  
  4         8  
  4         30  
17             use constant long_name => 'Type::Params v2 API with Type::Tiny';
18 4     4   235 use constant short_name => 'TP2-TT';
  4         8  
  4         225  
19 4     4   20  
  4         7  
  4         148  
20             use Type::Tiny::Duck Printable => [qw/ print close /];
21 4     4   886  
  4         4729  
  4         56  
22             state $check = signature named => [
23             integer => Int,
24 118     118 0 320 hashes => ArrayRef[HashRef],
25             object => Printable,
26             ];
27             }
28              
29             state $check = signature pos => [
30             Int,
31             ArrayRef[HashRef],
32 107     107 0 303 Printable,
33             ];
34             }
35              
36             1;