| 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::Role::LineItem; | ||||||||||||
| 5 | 8 | $Net::FreshBooks::API::Role::LineItem::VERSION = '0.24'; | |||||||||||
| 6 | 8 | ▶ | use Moose::Role; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | 8 | ▶ | use Net::FreshBooks::API::InvoiceLine; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | 8 | ▶ | use Data::Dump qw( dump ); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 9 | |||||||||||||
| 10 | 0 | ▶ | sub add_line { | ||||||||||
|
Subroutine
add_line: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||
| 11 | 0 | my $self = shift; | |||||||||||
| 12 | 0 | my $line_args = shift; | |||||||||||
| 13 | |||||||||||||
| 14 | 0 | ▶ | push @{ $self->{lines} ||= [] }, | ||||||||||
|
Condition0%0/2
$self->{"lines"} ||= []
MC/DC0%0/1
$self->{"lines"} ||= []
$self->{"lines"}
Truth table0%0/2
A
A= $self->{"lines"}
| |||||||||||||
| 15 | Net::FreshBooks::API::InvoiceLine->new( $line_args ); | ||||||||||||
| 16 | |||||||||||||
| 17 | 0 | return 1; | |||||||||||
| 18 | } | ||||||||||||
| 19 | |||||||||||||
| 20 | 8 | 1; | |||||||||||
| 21 | |||||||||||||
| 22 | # ABSTRACT: Line Item roles | ||||||||||||
| 23 | |||||||||||||
| 24 | __END__ | ||||||||||||