File Coverage

blib/lib/Benchmark/Featureset/ParamCheck/Base.pm
Criterion Covered Total %
statement 31 35 88.5
branch n/a
condition n/a
subroutine 10 14 71.4
pod 0 6 0.0
total 41 55 74.5


line stmt bran cond sub pod time code
1 4     4   1432 use v5.12;
  4         13  
2 4     4   20 use strict;
  4         9  
  4         69  
3 4     4   17 use warnings;
  4         7  
  4         415  
4              
5              
6             our $AUTHORITY = 'cpan:TOBYINK';
7             our $VERSION = '0.006';
8              
9              
10 0     0 0 0 use constant allow_extra_key => !!0;
11 0     0 0 0 use constant accept_hash => !!1;
12 0     0 0 0 use constant accept_hashref => !!1;
13 0     0 0 0  
14             use constant accept_array => !!1;
15 4     4   30 use constant accept_arrayref => !!0;
  4         6  
  4         291  
16 4     4   20  
  4         8  
  4         188  
17 4     4   23 my ($class, $times, @args) = @_;
  4         6  
  4         175  
18             my $check = $class->get_named_check;
19 4     4   20 $check->(@args) for 1 .. $times;
  4         6  
  4         160  
20 4     4   20 return;
  4         7  
  4         610  
21             }
22              
23 580     580 0 708933 my ($class, $times, @args) = @_;
24 580         3773 my $check = $class->get_positional_check;
25 580         181008 $check->(@args) for 1 .. $times;
26 440         143447400 return;
27             }
28              
29             1;