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   139 use strictures 2;
  17         171  
  17         705  
3 17     17   3459 use feature 'signatures';
  17         41  
  17         1187  
4 17     17   103 no warnings 'experimental::signatures';
  17         34  
  17         792  
5             #
6 17     17   100 use Type::Library 0.008 -base, -declare => qw[Configuration];
  17         301  
  17         114  
7 17     17   7454 use Type::Utils;
  17         34  
  17         972  
8 17     17   25662 use Types::Standard qw[Bool Enum Num Ref Str];
  17         38  
  17         131  
9 17     17   22599 use Types::TypeTiny 0.004 StringLike => { -as => "Stringable" };
  17         329  
  17         112  
10             class_type Configuration, { class => __PACKAGE__ };
11             coerce( Configuration, from Ref() => __PACKAGE__ . q[->new($_)] );
12             #
13 17     17   6309 use Moo;
  17         41  
  17         121  
14 17     17   6080 use lib './lib';
  17         36  
  17         106  
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__