YADV/CheckerASub.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
verify
2.0
BEGIN
2.0
CRAP 2.0
1 package Data::YADV::CheckerASub;
2  
3 use strict;
4 use warnings;
5  
6 use base 'Data::YADV::Checker';
7  
8 sub new {
9 my $class = shift;
10 my $cb = shift;
11  
12 my $self = $class->SUPER::new(@_);
13 $self->{cb} = $cb;
14  
15 $self;
16 }
17  
18 sub verify {
19 my $self = shift;
20  
21 $self->{cb}->($self, $self->structure->get_structure, @_);
22 }
23  
24 1;