| 1 | 1 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 2 | 1 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 3 | |||||||||||||
| 4 | package Test::Stdout; | ||||||||||||
| 5 | |||||||||||||
| 6 | sub TIEHANDLE | ||||||||||||
| 7 | { | ||||||||||||
| 8 | 1 | ▶ | my $class = shift; | ||||||||||
|
Subroutine
TIEHANDLE: called CC=2 SCAR=7.0
| |||||||||||||
| 9 | 1 | my $self = {}; | |||||||||||
| 10 | 1 | $self->{string} = shift; | |||||||||||
| 11 | 1 | ▶ | ${ $self->{string} } ||= ''; | ||||||||||
|
Condition50%1/2
${$$self{"string"};} ||= ""
MC/DC0%0/1
${$$self{"string"};} ||= ""
${$$self{"string"};}
Truth table50%1/2
A
A= ${$$self{"string"};}
| |||||||||||||
| 12 | |||||||||||||
| 13 | 1 | return bless $self, $class; | |||||||||||
| 14 | } | ||||||||||||
| 15 | |||||||||||||
| 16 | sub PRINT | ||||||||||||
| 17 | { | ||||||||||||
| 18 | 5000 | ▶ | my $self = shift; | ||||||||||
|
Subroutine
PRINT: called CC=1 SCAR=0.0
| |||||||||||||
| 19 | 5000 | ${ $self->{string} } .= join '', @_; | |||||||||||
| 20 | } | ||||||||||||
| 21 | |||||||||||||
| 22 | sub PRINTF | ||||||||||||
| 23 | { | ||||||||||||
| 24 | 0 | ▶ | my $self = shift; | ||||||||||
|
Subroutine
PRINTF: not called CC=1 SCAR=6.9
| |||||||||||||
| 25 | 0 | my $format = shift; | |||||||||||
| 26 | 0 | ${ $self->{string} } .= sprintf($format, @_); | |||||||||||
| 27 | } | ||||||||||||
| 28 | |||||||||||||
| 29 | 1 | 1; | |||||||||||