DocRaptor/DocOptions.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package DocRaptor::DocOptions;
2  
3 use Moose;
4 use Moose::Util::TypeConstraints;
5  
6 has 'document_content' => (
7 is => 'rw',
8 isa => 'Str',
9 );
10  
11 has 'document_url' => (
12 is => 'rw',
13 isa => 'Str',
14 );
15  
16 has 'is_test' => (
17 traits => ['Bool'],
18 is => 'rw',
19 isa => 'Bool',
20 default => 1,
21 );
22  
23 enum 'DocumentType' => [qw( pdf xls xlsx )];
24 has 'document_type' => (
25 is => 'rw',
26 isa => 'DocumentType',
27 required => 1,
28 );
29  
30 has 'document_name' => (
31 is => 'rw',
32 isa => 'Str',
33 required => 1,
34 );
35  
36 my $VERSION = '0.002000';
37  
38 1;