Braintree/Dispute.pm

filter: Statementstmt 75.0% 15 / 20 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 67.8% 19 / 28 CC 2 SCAR 9.8
CC
2
Cov
68%
BUILD
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« Braintree/AdvancedSearchNodes.pm ↑ Summary Braintree/ErrorCodes.pm »
1 package Net::Braintree::Dispute;
2 1 ▶use Net::Braintree::Dispute::TransactionDetails;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use Net::Braintree::Dispute::Status;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Net::Braintree::Dispute::Reason;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 extends 'Net::Braintree::ResultObject';
8  
9 1 my $meta = __PACKAGE__->meta;
10  
11 0 ▶sub BUILD {
Subroutine BUILD: not called CC=2 SCAR=17.9
Pod undocumented
12 0 my ($self, $attributes) = @_;
13  
14 0 $meta->add_attribute('transaction_details', is => 'rw');
15 0 ▶ $self->transaction_details(Net::Braintree::Dispute::TransactionDetails->new($attributes->{transaction})) if ref($attributes->{transaction}) eq 'HASH';
Branch: 1 branch
BranchTrueFalseTotal
if ref $attributes->{"transaction"} eq "HASH" 0 0 0
16 0 delete($attributes->{transaction});
17 0 $self->set_attributes_from_hash($self, $attributes);
18 }
19  
20 1 1;
« Braintree/AdvancedSearchNodes.pm ↑ Summary Braintree/ErrorCodes.pm »