File Coverage

lib/Finance/Alpaca/Struct/Watchlist.pm
Criterion Covered Total %
statement 36 36 100.0
branch n/a
condition n/a
subroutine 12 12 100.0
pod n/a
total 48 48 100.0


line stmt bran cond sub pod time code
1             package Finance::Alpaca::Struct::Watchlist 0.9902 {
2 1     1   8 use strictures 2;
  1         7  
  1         39  
3 1     1   185 use feature 'signatures';
  1         2  
  1         64  
4 1     1   5 no warnings 'experimental::signatures';
  1         3  
  1         42  
5             #
6 1     1   6 use Type::Library 0.008 -base, -declare => qw[Watchlist];
  1         15  
  1         6  
7 1     1   406 use Type::Utils;
  1         2  
  1         5  
8 1     1   1573 use Types::Standard qw[ArrayRef Ref Str];
  1         2  
  1         7  
9 1     1   1057 use Types::TypeTiny 0.004 StringLike => { -as => "Stringable" };
  1         17  
  1         7  
10             class_type Watchlist, { class => __PACKAGE__ };
11             coerce( Watchlist, from Ref() => __PACKAGE__ . q[->new($_)] );
12             #
13 1     1   346 use Moo;
  1         2  
  1         6  
14 1     1   319 use Types::UUID;
  1         2  
  1         6  
15 1     1   370 use lib './lib';
  1         3  
  1         6  
16 1     1   157 use Finance::Alpaca::Struct::Asset qw[Asset];
  1         2  
  1         9  
17 1     1   328 use Finance::Alpaca::Types;
  1         1  
  1         6  
18             has [qw[account_id id ]] => ( is => 'ro', isa => Uuid, required => 1 );
19             has [qw[created_at updated_at]] => ( is => 'ro', isa => Timestamp, required => 1, coerce => 1 );
20             has name => ( is => 'ro', isa => Str, required => 1 );
21             has assets => ( is => 'ro', isa => ArrayRef [Asset], coerce => 1, predicate => 1 );
22             }
23             1;
24             __END__