File Coverage

lib/Finance/Alpaca/Struct/Clock.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::Clock 0.9902 {
2 17     17   137 use strictures 2;
  17         153  
  17         752  
3 17     17   3722 use feature 'signatures';
  17         40  
  17         1361  
4 17     17   105 no warnings 'experimental::signatures';
  17         34  
  17         760  
5             #
6 17     17   99 use Type::Library 0.008 -base, -declare => qw[Clock];
  17         312  
  17         110  
7 17     17   7541 use Type::Utils;
  17         46  
  17         103  
8 17     17   26082 use Types::Standard qw[Bool Enum Int Num Ref Str];
  17         41  
  17         221  
9 17     17   24354 use Types::TypeTiny 0.004 StringLike => { -as => "Stringable" };
  17         326  
  17         114  
10             class_type Clock, { class => __PACKAGE__ };
11             coerce( Clock, from Ref() => __PACKAGE__ . q[->new($_)] );
12             #
13 17     17   6862 use Moo;
  17         45  
  17         126  
14 17     17   6059 use lib './lib';
  17         43  
  17         107  
15 17     17   2793 use Finance::Alpaca::Types;
  17         32  
  17         180  
16             has [qw[next_open next_close timestamp]] =>
17             ( is => 'ro', isa => Timestamp, required => 1, coerce => 1 );
18             has is_open => ( is => 'ro', isa => Bool, required => 1, coerce => 1 );
19             }
20             1;
21             __END__