| 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 | 7352 | use warnings; | |||
| 3 | 6 | ||||||
| 3 | 76 | ||||||
| 4 | 3 | 3 | 13 | ||||
| 3 | 6 | ||||||
| 3 | 59 | ||||||
| 5 | use Moo::Role; | ||||||
| 6 | 3 | 3 | 13 | use Types::Standard qw(InstanceOf HashRef); | |||
| 3 | 6 | ||||||
| 3 | 15 | ||||||
| 7 | 3 | 3 | 1104 | use namespace::clean; | |||
| 3 | 6 | ||||||
| 3 | 16 | ||||||
| 8 | 3 | 3 | 1628 | ||||
| 3 | 6 | ||||||
| 3 | 16 | ||||||
| 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; |