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 1     1   8 use strictures 2;
  1         6  
  1         88  
3 1     1   183 use feature 'signatures';
  1         2  
  1         60  
4 1     1   5 no warnings 'experimental::signatures';
  1         2  
  1         42  
5             #
6 1     1   6 use Type::Library 0.008 -base, -declare => qw[Configuration];
  1         16  
  1         7  
7 1     1   403 use Type::Utils;
  1         2  
  1         5  
8 1     1   1498 use Types::Standard qw[Bool Enum Num Ref Str];
  1         2  
  1         8  
9 1     1   1224 use Types::TypeTiny 0.004 StringLike => { -as => "Stringable" };
  1         16  
  1         6  
10             class_type Configuration, { class => __PACKAGE__ };
11             coerce( Configuration, from Ref() => __PACKAGE__ . q[->new($_)] );
12             #
13 1     1   347 use Moo;
  1         2  
  1         5  
14 1     1   337 use lib './lib';
  1         2  
  1         5  
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__