File Coverage

blib/lib/Benchmark/Featureset/ParamCheck/Base/PV.pm
Criterion Covered Total %
statement 26 26 100.0
branch n/a
condition n/a
subroutine 9 9 100.0
pod 0 2 0.0
total 35 37 94.5


line stmt bran cond sub pod time code
1 4     4   1497 use v5.12;
  4         13  
2 4     4   22 use strict;
  4         8  
  4         90  
3 4     4   18 use warnings;
  4         10  
  4         223  
4              
5              
6             our $AUTHORITY = 'cpan:TOBYINK';
7             our $VERSION = '0.006';
8              
9             # Give Params::Validate a fighting chance.
10             BEGIN { $ENV{PARAMS_VALIDATE_IMPLEMENTATION} = 'XS' };
11 4     4   161  
12             use parent qw(Benchmark::Featureset::ParamCheck::Base);
13 4     4   23 use Params::Validate 1.26;
  4         8  
  4         44  
14 4     4   232 use namespace::autoclean;
  4         57  
  4         218  
15 4     4   22  
  4         8  
  4         30  
16             my ($class, $times, @args) = @_;
17             my $check = $class->get_named_check;
18 116     116 0 130077 &validate(\@args, $check) for 1 .. $times;
19 116         445 return;
20 116         3761135 }
21 88         3011  
22             my ($class, $times, @args) = @_;
23             my $check = $class->get_positional_check;
24             &validate_pos(\@args, @$check) for 1 .. $times;
25 94     94 0 104275 return;
26 94         421 }
27 94         3069085  
28 84         3372 1;