| 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
MC/DC0%0/2
$self->month && $self->year
$self->month
$self->year
Truth table0%0/3
A && B
A= $self->monthB= $self->year
| |||||||||||||||||||||
| 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__ | ||||||||||||||||||||