blib/lib/Dancer2/Plugin/FormValidator/Role/Extension.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 15 | 15 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | n/a | ||
total | 20 | 20 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | |||||||
2 | use strict; | ||||||
3 | 3 | 3 | 6523 | use warnings; | |||
3 | 6 | ||||||
3 | 70 | ||||||
4 | 3 | 3 | 12 | ||||
3 | 6 | ||||||
3 | 61 | ||||||
5 | use Moo::Role; | ||||||
6 | 3 | 3 | 12 | use Types::Standard qw(InstanceOf HashRef); | |||
3 | 6 | ||||||
3 | 15 | ||||||
7 | 3 | 3 | 995 | use namespace::clean; | |||
3 | 6 | ||||||
3 | 17 | ||||||
8 | 3 | 3 | 1577 | ||||
3 | 7 | ||||||
3 | 20 | ||||||
9 | has plugin => ( | ||||||
10 | is => 'ro', | ||||||
11 | isa => InstanceOf['Dancer2::Plugin::FormValidator'], | ||||||
12 | predicate => 1, | ||||||
13 | ); | ||||||
14 | |||||||
15 | has config => ( | ||||||
16 | is => 'ro', | ||||||
17 | isa => HashRef, | ||||||
18 | predicate => 1, | ||||||
19 | ); | ||||||
20 | |||||||
21 | requires 'validators'; | ||||||
22 | |||||||
23 | 1; |