| 1 | package Pod::Simple::Data; | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | 1 | ▶ | use 5.008_005; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | 1 | ▶ | use Pod::Simple (); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 8 | 1 | ▶ | use vars qw( @ISA $VERSION ); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 9 | 1 | $VERSION = '0.02'; | |||||||||||||||||||||||||||
| 10 | 1 | @ISA = ('Pod::Simple'); | |||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||
| 12 | 9 | ▶ | sub new { | ||||||||||||||||||||||||||
|
Subroutine
new: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||||||||||||||||||||
| 13 | 9 | my $self = shift; | |||||||||||||||||||||||||||
| 14 | 9 | my $new = $self->SUPER::new(); | |||||||||||||||||||||||||||
| 15 | 9 | ▶ | $new->{'output_fh'} ||= *STDOUT{IO}; | ||||||||||||||||||||||||||
|
Condition50%1/2
$new->{"output_fh"} ||= *STDOUT{"IO"}
MC/DC0%0/1
$new->{"output_fh"} ||= *STDOUT{"IO"}
$new->{"output_fh"}
Truth table50%1/2
A
A= $new->{"output_fh"}
| |||||||||||||||||||||||||||||
| 16 | 9 | $new->nix_X_codes(1); | |||||||||||||||||||||||||||
| 17 | 9 | ▶ | push @_, '*' unless scalar(@_); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 18 | 9 | $new->accept_targets(@_); | |||||||||||||||||||||||||||
| 19 | 9 | return $new; | |||||||||||||||||||||||||||
| 20 | } | ||||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||
| 22 | 22 | ▶ | sub _handle_text { | ||||||||||||||||||||||||||
|
Subroutine
_handle_text: called CC=4 SCAR=13.9
| |||||||||||||||||||||||||||||
| 23 | 22 | my $para = $_[0]{'curr_open'}->[-1]; | |||||||||||||||||||||||||||
| 24 | 22 | ▶ | if (defined $para && $para->[0] eq '=for') { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
defined $para and $para->[0] eq "=for"
MC/DC100%2/2
defined $para and $para->[0] eq "=for"
defined $para
$para->[0] eq "=for"
Truth table100%3/3
A and B
A= defined $paraB= $para->[0] eq "=for"
| |||||||||||||||||||||||||||||
| 25 | 20 | print {$_[0]{'output_fh'}} $_[1]; | |||||||||||||||||||||||||||
| 26 | 20 | ▶ | print {$_[0]{'output_fh'}} "\n" unless $_[1] =~ /\n$/; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 27 | } | ||||||||||||||||||||||||||||
| 28 | 22 | return; | |||||||||||||||||||||||||||
| 29 | } | ||||||||||||||||||||||||||||
| 30 | |||||||||||||||||||||||||||||
| 31 | 1 | 1; | |||||||||||||||||||||||||||
| 32 | __END__ | ||||||||||||||||||||||||||||