blib/lib/Data/YADV/CheckerASub.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 16 | 16 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 2 | 0.0 |
total | 21 | 23 | 91.3 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Data::YADV::CheckerASub; | ||||||
2 | |||||||
3 | 1 | 1 | 6 | use strict; | |||
1 | 2 | ||||||
1 | 34 | ||||||
4 | 1 | 1 | 7 | use warnings; | |||
1 | 2 | ||||||
1 | 33 | ||||||
5 | |||||||
6 | 1 | 1 | 6 | use base 'Data::YADV::Checker'; | |||
1 | 1 | ||||||
1 | 214 | ||||||
7 | |||||||
8 | sub new { | ||||||
9 | 8 | 8 | 0 | 12 | my $class = shift; | ||
10 | 8 | 11 | my $cb = shift; | ||||
11 | |||||||
12 | 8 | 36 | my $self = $class->SUPER::new(@_); | ||||
13 | 8 | 22 | $self->{cb} = $cb; | ||||
14 | |||||||
15 | 8 | 30 | $self; | ||||
16 | } | ||||||
17 | |||||||
18 | sub verify { | ||||||
19 | 8 | 8 | 0 | 12 | my $self = shift; | ||
20 | |||||||
21 | 8 | 28 | $self->{cb}->($self, $self->structure->get_structure, @_); | ||||
22 | } | ||||||
23 | |||||||
24 | 1; |