Braintree/CustomerSearch.pm

filter: Statementstmt 97.0% 33 / 34 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 1 totaltotal 92.1% 35 / 38 CC 1 SCAR 2.9
CC
1
Cov
97%
to_hash
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Braintree/SubscriptionSearch.pm ↑ Summary Braintree/TransactionSearch.pm »
1 package Net::Braintree::CustomerSearch;
2 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use Net::Braintree::AdvancedSearch qw(search_to_hash);
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 my $meta = __PACKAGE__->meta();
5  
6 1 my $field = Net::Braintree::AdvancedSearchFields->new(metaclass => $meta);
7 1 $field->text("address_country_name");
8 1 $field->text("address_extended_address");
9 1 $field->text("address_first_name");
10 1 $field->text("address_last_name");
11 1 $field->text("address_locality");
12 1 $field->text("address_postal_code");
13 1 $field->text("address_region");
14 1 $field->text("address_street_address");
15 1 $field->text("cardholder_name");
16 1 $field->text("company");
17 1 $field->text("email");
18 1 $field->text("fax");
19 1 $field->text("first_name");
20 1 $field->text("id");
21 1 $field->text("last_name");
22 1 $field->text("payment_method_token");
23 1 $field->text("paypal_account_email");
24 1 $field->text("phone");
25 1 $field->text("website");
26  
27 1 $field->is("payment_method_token_with_duplicates");
28 1 $field->equality("credit_card_expiration_date");
29 1 $field->partial_match("credit_card_number");
30 1 $field->multiple_values("ids");
31 1 $field->range("created_at");
32  
33 0 ▶sub to_hash {
Subroutine to_hash: not called CC=1 SCAR=6.9
Pod undocumented
34 0 Net::Braintree::AdvancedSearch->search_to_hash(shift);
35 }
36  
37 1 1;
38  
« Braintree/SubscriptionSearch.pm ↑ Summary Braintree/TransactionSearch.pm »