PayPal/Webhook.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 100% 5 / 5 Podpod 100% 3 / 3 totaltotal 100% 27 / 27 CC 2 SCAR 2.9
CC
2
Cov
100%
event_names
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« PayPal/Refund.pm ↑ Summary PayPal/WebhookEvents.pm »
1 package WWW::PayPal::Webhook;
2  
3 # ABSTRACT: PayPal webhook (endpoint subscription) entity
4  
5 3 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 our $VERSION = '0.003';
9  
10  
11 3 has _client => (
12 is => 'ro',
13 required => 1,
14 weak_ref => 1,
15 init_arg => 'client',
16 );
17  
18 3 has data => ( is => 'rw', required => 1 );
19  
20  
21 3 ▶sub id { $_[0]->data->{id} }
Subroutine id: called CC=1 SCAR=0.0
Pod documented
22 1 ▶sub url { $_[0]->data->{url} }
Subroutine url: called CC=1 SCAR=0.0
Pod documented
23  
24  
25 2 ▶sub event_names {
Subroutine event_names: called CC=2 SCAR=6.9
Pod documented
26 2 my ($self) = @_;
27 2 ▶ return map { $_->{name} } @{ $self->data->{event_types} || [] };
Condition100%2/2
$self->data->{'event_types'} || []
l!l
11
MC/DC100%1/1
$self->data->{'event_types'} || []
$self->data->{'event_types'}
Truth table100%2/2
A
A= $self->data->{'event_types'}
Aresult
11
00
28 }
29  
30  
31  
32 3 1;
33  
34 __END__
« PayPal/Refund.pm ↑ Summary PayPal/WebhookEvents.pm »