File Coverage

blib/lib/Benchmark/Featureset/ParamCheck/Base/DataValidator.pm
Criterion Covered Total %
statement 26 26 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod 0 3 0.0
total 34 37 91.8


line stmt bran cond sub pod time code
1 4     4   1546 use v5.12;
  4         18  
2 4     4   30 use strict;
  4         15  
  4         68  
3 4     4   16 use warnings;
  4         9  
  4         230  
4              
5              
6             our $AUTHORITY = 'cpan:TOBYINK';
7             our $VERSION = '0.006';
8              
9             use parent qw(Benchmark::Featureset::ParamCheck::Base);
10 4     4   27 use Data::Validator 1.07;
  4         19  
  4         27  
11 4     4   1800  
  4         103763  
  4         612  
12             my ($class, $times, @args) = @_;
13             my $check = $class->get_named_check;
14 174     174 0 225586 $check->validate(@args) for 1 .. $times;
15 174         1042 return;
16 174         16930 }
17 132         139727305  
18             my ($class, $times, @args) = @_;
19             my $check = $class->get_positional_check;
20             $check->validate(@args) for 1 .. $times;
21 141     141 0 182018 return;
22 141         789 }
23 141         10826  
24 126         80228595 state $check = do {
25             my $class = shift;
26             my $named = $class->get_named_check(@_);
27             bless({ rules => $named->rules }, 'Data::Validator')->with('StrictSequenced');
28 141     141 0 399 };
29 2         6 }
30 2         13  
31 2         7260 1;