File Coverage

lib/Finance/Alpaca/Struct/Calendar.pm
Criterion Covered Total %
statement 30 30 100.0
branch n/a
condition n/a
subroutine 10 10 100.0
pod n/a
total 40 40 100.0


line stmt bran cond sub pod time code
1             package Finance::Alpaca::Struct::Calendar 0.9902 {
2 1     1   7 use strictures 2;
  1         7  
  1         36  
3 1     1   176 use feature 'signatures';
  1         2  
  1         61  
4 1     1   5 no warnings 'experimental::signatures'; #
  1         2  
  1         41  
5 1     1   5 use Type::Library 0.008 -base, -declare => qw[Calendar];
  1         15  
  1         6  
6 1     1   396 use Type::Utils;
  1         3  
  1         6  
7 1     1   1455 use Types::Standard qw[ArrayRef Dict Int Ref Str];
  1         2  
  1         7  
8 1     1   1276 use Types::TypeTiny 0.004 StringLike => { -as => "Stringable" };
  1         18  
  1         7  
9             class_type Calendar, { class => __PACKAGE__ };
10             coerce( Calendar, from Ref() => __PACKAGE__ . q[->new($_)] );
11             #
12 1     1   345 use Moo;
  1         2  
  1         6  
13 1     1   316 use lib './lib';
  1         2  
  1         6  
14 1     1   133 use Finance::Alpaca::Types;
  1         3  
  1         7  
15              
16             has [qw[date open close session_open session_close]] =>
17             ( is => 'ro', isa => Str, required => 1 );
18             }
19             1;
20             __END__