File Coverage

blib/lib/Starch/Plugin/CookieArgs/Manager.pm
Criterion Covered Total %
statement 20 20 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod n/a
total 27 27 100.0


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