| 1 | package Print::Indented; | ||||||||||||||||||||||||||||||||||||||
| 2 | 2 | ▶ | use 5.008005; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 5 | 2 | ▶ | use Print::Indented::Handle; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||||||||||||
| 7 | 2 | our $VERSION = '0.01'; | |||||||||||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||||||||||||
| 9 | 2 | ▶ | sub import { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
import: called CC=7 SCAR=29.4
| |||||||||||||||||||||||||||||||||||||||
| 10 | 0 | ▶ | my $class = shift; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
import: not called CC=7 SCAR=29.4
| |||||||||||||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||||||||||||
| 12 | 0 | my ($pkg) = caller; | |||||||||||||||||||||||||||||||||||||
| 13 | 0 | ▶ | undef $pkg if $pkg eq 'main'; | ||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||
| 14 | 0 | ▶ | undef $pkg if grep /^:all$/, @_; | ||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||||||||||||
| 16 | 0 | ▶ | our $STDOUT ||= Print::Indented::Handle->new(\*STDOUT); | ||||||||||||||||||||||||||||||||||||
|
Condition16%1/6
our $STDOUT ||= "Print::Indented::Handle"->new(\*STDOUT)
our $STDOUT ||= "Print::Indented::Handle"->new(\*STDOUT)
MC/DC0%0/2
our $STDOUT ||= "Print::Indented::Handle"->new(\*STDOUT)
our $STDOUT
"Print::Indented::Handle"->new(\*STDOUT)
MC/DC0%0/2
our $STDOUT ||= "Print::Indented::Handle"->new(\*STDOUT)
our $STDOUT
"Print::Indented::Handle"->new(\*STDOUT)
Truth table33%1/3
A ||= B
A= our $STDOUTB= "Print::Indented::Handle"->new(\*STDOUT)
Truth table0%0/3
A ||= B
A= our $STDOUTB= "Print::Indented::Handle"->new(\*STDOUT)
| |||||||||||||||||||||||||||||||||||||||
| 17 | 0 | ▶ | our $STDERR ||= Print::Indented::Handle->new(\*STDERR); | ||||||||||||||||||||||||||||||||||||
|
Condition16%1/6
our $STDERR ||= "Print::Indented::Handle"->new(\*STDERR)
our $STDERR ||= "Print::Indented::Handle"->new(\*STDERR)
MC/DC0%0/2
our $STDERR ||= "Print::Indented::Handle"->new(\*STDERR)
our $STDERR
"Print::Indented::Handle"->new(\*STDERR)
MC/DC0%0/2
our $STDERR ||= "Print::Indented::Handle"->new(\*STDERR)
our $STDERR
"Print::Indented::Handle"->new(\*STDERR)
Truth table33%1/3
A ||= B
A= our $STDERRB= "Print::Indented::Handle"->new(\*STDERR)
Truth table0%0/3
A ||= B
A= our $STDERRB= "Print::Indented::Handle"->new(\*STDERR)
| |||||||||||||||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||||||||||||
| 19 | 0 | ▶ | my $pkg_re = defined $pkg ? qr/^\Q$pkg\E$/ : qr//; | ||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||
| 20 | 0 | $_->add_package_re($pkg_re) for $STDOUT, $STDERR; | |||||||||||||||||||||||||||||||||||||
| 21 | } | ||||||||||||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||||||||||||
| 23 | 2 | 1; | |||||||||||||||||||||||||||||||||||||
| 24 | |||||||||||||||||||||||||||||||||||||||
| 25 | __END__ | ||||||||||||||||||||||||||||||||||||||