File Coverage

lib/Finance/Alpaca/Struct/Configuration.pm
Criterion Covered Total %
statement 27 27 100.0
branch n/a
condition n/a
subroutine 9 9 100.0
pod n/a
total 36 36 100.0


line stmt bran cond sub pod time code
1             package Finance::Alpaca::Struct::Configuration 0.9902 {
2 17     17   110 use strictures 2;
  17         134  
  17         647  
3 17     17   3523 use feature 'signatures';
  17         48  
  17         1242  
4 17     17   90 no warnings 'experimental::signatures';
  17         32  
  17         721  
5             #
6 17     17   84 use Type::Library 0.008 -base, -declare => qw[Configuration];
  17         316  
  17         94  
7 17     17   6531 use Type::Utils;
  17         32  
  17         857  
8 17     17   21387 use Types::Standard qw[Bool Enum Num Ref Str];
  17         33  
  17         131  
9 17     17   19041 use Types::TypeTiny 0.004 StringLike => { -as => "Stringable" };
  17         335  
  17         102  
10             class_type Configuration, { class => __PACKAGE__ };
11             coerce( Configuration, from Ref() => __PACKAGE__ . q[->new($_)] );
12             #
13 17     17   5192 use Moo;
  17         36  
  17         129  
14 17     17   5589 use lib './lib';
  17         34  
  17         108  
15             has dtbp_check => ( is => 'ro', isa => Enum [qw[both entry exit]], required => 1 );
16             has trade_confirm_email => ( is => 'ro', isa => Enum [qw[all none]], required => 1 );
17             has [qw[fractional_trading no_shorting suspend_trade]] =>
18             ( is => 'ro', isa => Bool, required => 1, coerce => 1 );
19             has max_margin_multiplier => ( is => 'ro', isa => Num, required => 1 );
20             }
21             1;
22             __END__