| blib/lib/WebService/Braintree/Role/MakeRequest.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 3 | 7 | 42.8 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 1 | 2 | 50.0 |
| pod | n/a | ||
| total | 4 | 9 | 44.4 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package WebService::Braintree::Role::MakeRequest; | ||||||
| 2 | $WebService::Braintree::Role::MakeRequest::VERSION = '0.92'; | ||||||
| 3 | 1 | 1 | 928 | use Moose::Role; | |||
| 1 | 3913 | ||||||
| 1 | 3 | ||||||
| 4 | |||||||
| 5 | sub _make_request { | ||||||
| 6 | 0 | 0 | my($self, $path, $verb, $params) = @_; | ||||
| 7 | 0 | my $response = $self->gateway->http->$verb($path, $params); | |||||
| 8 | 0 | my $result = WebService::Braintree::Result->new(response => $response); | |||||
| 9 | 0 | return $result; | |||||
| 10 | } | ||||||
| 11 | |||||||
| 12 | 1; |