lib/App/MadEye/Rule.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 32 CC 2 SCAR 11.5
CC
2
Cov
0%
new
6.0
config
2.0
BEGIN
2.0
CRAP 3.1
1 package App::MadEye::Rule;
2 use strict;
3 use warnings;
4 use App::MadEye::Util qw/get_schema_from_pod/;
5 use Kwalify ();
6  
7 sub new {
8 my ($class, $config) = @_;
9 $config ||= {};
10 if (my $schema = get_schema_from_pod($class)) {
11 Kwalify::validate($schema, $config);
12 }
13 bless {config => $config}, $class;
14 }
15  
16 sub config { $_[0]->{config} }
17  
18 1;