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 17     17   115 use strictures 2;
  17         136  
  17         670  
3 17     17   3676 use feature 'signatures';
  17         39  
  17         1299  
4 17     17   92 no warnings 'experimental::signatures';
  17         34  
  17         671  
5             #
6 17     17   82 use Type::Library 0.008 -base, -declare => qw[Watchlist];
  17         334  
  17         98  
7 17     17   6501 use Type::Utils;
  17         32  
  17         96  
8 17     17   22420 use Types::Standard qw[ArrayRef Ref Str];
  17         39  
  17         142  
9 17     17   15005 use Types::TypeTiny 0.004 StringLike => { -as => "Stringable" };
  17         314  
  17         107  
10             class_type Watchlist, { class => __PACKAGE__ };
11             coerce( Watchlist, from Ref() => __PACKAGE__ . q[->new($_)] );
12             #
13 17     17   5323 use Moo;
  17         34  
  17         127  
14 17     17   5474 use Types::UUID;
  17         30  
  17         117  
15 17     17   4807 use lib './lib';
  17         34  
  17         124  
16 17     17   2612 use Finance::Alpaca::Struct::Asset qw[Asset];
  17         30  
  17         138  
17 17     17   4737 use Finance::Alpaca::Types;
  17         29  
  17         106  
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__