File Coverage

blib/lib/Dancer2/Plugin/FormValidator/Result.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 15     15   82 use warnings;
  15         162  
  15         356  
4 15     15   64  
  15         21  
  15         298  
5             use Moo;
6 15     15   62 use Types::Standard qw(ArrayRef HashRef Bool);
  15         25  
  15         70  
7 15     15   4114 use namespace::clean;
  15         32  
  15         102  
8 15     15   9455  
  15         30  
  15         85  
9             has success => (
10             is => 'ro',
11             isa => Bool,
12             required => 1,
13             );
14              
15             has invalid => (
16             is => 'ro',
17             isa => ArrayRef,
18             required => 1,
19             );
20              
21             has valid => (
22             is => 'ro',
23             isa => HashRef,
24             required => 1,
25             );
26              
27             has messages => (
28             is => 'ro',
29             isa => HashRef,
30             required => 1,
31             );
32              
33             1;