| 1 | package MKDoc::Text::Structured::Base; | ||||||||||||
| 2 | 20 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 3 | 20 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | |||||||||||||
| 5 | sub new | ||||||||||||
| 6 | 56 | ▶ | { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 7 | 56 | my $class = shift; | |||||||||||
| 8 | 56 | return bless {}, $class; | |||||||||||
| 9 | } | ||||||||||||
| 10 | |||||||||||||
| 11 | sub add_line | ||||||||||||
| 12 | 289 | ▶ | { | ||||||||||
|
Subroutine
add_line: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 13 | 289 | my $self = shift; | |||||||||||
| 14 | 289 | ▶ | $self->{lines} ||= []; | ||||||||||
|
Condition100%2/2
$self->{"lines"} ||= []
MC/DC100%1/1
$self->{"lines"} ||= []
$self->{"lines"}
Truth table100%2/2
A
A= $self->{"lines"}
| |||||||||||||
| 15 | 289 | push @{$self->{lines}}, @_; | |||||||||||
| 16 | } | ||||||||||||
| 17 | |||||||||||||
| 18 | 20 | 1; | |||||||||||
| 19 | |||||||||||||
| 20 | __END__ | ||||||||||||