API/Recurring/AutoBill/Card/Expiration.pm

filter: Statementstmt 84.2% 16 / 19 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 66.6% 4 / 6 Podpod 100% 1 / 1 totaltotal 67.7% 21 / 31 CC 2 SCAR 9.4
CC
2
Cov
73%
_validates
6.0
node_name
2.0
BEGIN
1.0
CRAP 2.6
« API/Client.pm ↑ Summary API/Role/LineItem.pm »
1 8 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 8 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Net::FreshBooks::API::Recurring::AutoBill::Card::Expiration;
5 8 $Net::FreshBooks::API::Recurring::AutoBill::Card::Expiration::VERSION = '0.24';
6 8 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 8 extends 'Net::FreshBooks::API::Base';
8  
9 8 has $_ => ( is => _fields()->{$_}->{is} ) for sort keys %{ _fields() };
10  
11 0 ▶sub node_name { return 'expiration' }
Subroutine node_name: not called CC=1 SCAR=6.9
Pod documented
12  
13 24 ▶sub _fields {
Subroutine _fields: called CC=1 SCAR=0.0
14 return {
15 24 month => { is => 'rw' },
16 year => { is => 'rw' },
17 };
18 }
19  
20 # make sure unitialized objects don't make the cut
21 0 ▶sub _validates {
Subroutine _validates: not called CC=2 SCAR=17.9
22  
23 0 my $self = shift;
24  
25 0 ▶ return ( $self->month && $self->year );
Condition0%0/3
$self->month && $self->year
!ll&&!rl&&r
000
MC/DC0%0/2
$self->month && $self->year
$self->month $self->year
Truth table0%0/3
A && B
A= $self->monthB= $self->year
ABresult
0X0
100
111
26  
27 }
28  
29 8 __PACKAGE__->meta->make_immutable();
30  
31 8 1;
32  
33 # ABSTRACT: FreshBooks Autobill Credit Card Expiration access
34  
35 __END__
« API/Client.pm ↑ Summary API/Role/LineItem.pm »