File Coverage

blib/lib/Starch/Plugin/CookieArgs/Manager.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 24 24 100.0


line stmt bran cond sub pod time code
1             package Starch::Plugin::CookieArgs::Manager;
2             our $VERSION = '0.14';
3              
4 1     1   540 use Types::Common::Numeric -types;
  1         2  
  1         18  
5 1     1   1557 use Types::Common::String -types;
  1         2  
  1         10  
6 1     1   1451 use Types::Standard -types;
  1         2  
  1         10  
7              
8 1     1   4738 use Moo::Role;
  1         2  
  1         9  
9 1     1   570 use strictures 2;
  1         10  
  1         44  
10 1     1   202 use namespace::clean;
  1         2  
  1         8  
11              
12             with 'Starch::Plugin::ForManager';
13              
14             has cookie_name => (
15             is => 'ro',
16             isa => NonEmptySimpleStr,
17             default => 'session',
18             );
19              
20             has cookie_domain => (
21             is => 'ro',
22             isa => (NonEmptySimpleStr) | Undef,
23             );
24              
25             has cookie_path => (
26             is => 'ro',
27             isa => (NonEmptySimpleStr) | Undef,
28             );
29              
30             has cookie_secure => (
31             is => 'ro',
32             isa => Bool,
33             default => 1,
34             );
35              
36             has cookie_http_only => (
37             is => 'ro',
38             isa => Bool,
39             default => 1,
40             );
41              
42             1;