File Coverage

blib/lib/Starch/Plugin/RenewExpiration/Manager.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             package Starch::Plugin::RenewExpiration::Manager;
2             our $VERSION = '0.14';
3              
4 1     1   585 use Types::Common::Numeric -types;
  1         2  
  1         12  
5 1     1   1528 use Types::Common::String -types;
  1         36  
  1         9  
6              
7 1     1   1504 use Moo::Role;
  1         2  
  1         8  
8 1     1   436 use strictures 2;
  1         11  
  1         42  
9 1     1   166 use namespace::clean;
  1         2  
  1         6  
10              
11             with 'Starch::Plugin::ForManager';
12              
13             has renew_threshold => (
14             is => 'ro',
15             isa => PositiveOrZeroInt,
16             default => 0,
17             );
18              
19             has renew_variance => (
20             is => 'ro',
21             isa => PositiveOrZeroNum,
22             default => 0,
23             );
24              
25             has renew_state_key => (
26             is => 'ro',
27             isa => NonEmptySimpleStr,
28             default => '__STARCH_RENEW__',
29             );
30              
31             1;