lib/WebService/Braintree/EuropeBankAccountGateway.pm

filter: Statementstmt 86.9% 20 / 23 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 0.0% 0 / 1 totaltotal 78.7% 26 / 33 CC 2 SCAR 8.1
CC
2
Cov
80%
find
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
« lib/WebService/Braintree/DocumentUploadGateway.pm ↑ Summary lib/WebService/Braintree/IdealPaymentGateway.pm »
1 # vim: sw=4 ts=4 ft=perl
2  
3 package # hide from pause
4 WebService::Braintree::EuropeBankAccountGateway;
5  
6 22 ▶use 5.010_001;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 22 ▶use strictures 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 22 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 22 extends 'WebService::Braintree::PaymentMethodGatewayBase';
11  
12 22 ▶use Carp qw(confess);
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 22 ▶use WebService::Braintree::Util qw(is_not_empty validate_id);
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 22 ▶use WebService::Braintree::_::EuropeBankAccount;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 0 ▶sub find {
Subroutine find: not called CC=2 SCAR=17.9
Pod undocumented
19 0 my ($self, $token) = @_;
20 0 ▶ confess "NotFoundError" unless validate_id($token);
Branch: 1 branch
BranchTrueFalseTotal
unless validate_id($token) 0 0 0
21 0 return $self->_find(europe_bank_account => (
22 "/payment_methods/europe_bank_account/${token}", 'get', undef,
23 ));
24 }
25  
26 22 __PACKAGE__->meta->make_immutable;
27  
28 22 1;
29 __END__
« lib/WebService/Braintree/DocumentUploadGateway.pm ↑ Summary lib/WebService/Braintree/IdealPaymentGateway.pm »