Simple/TextContent.pm

filter: Statementstmt 100% 31 / 31 Branchbran 100% 4 / 4 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 8 / 8 Podpod 100% 1 / 1 totaltotal 95.7% 45 / 47 CC 4 SCAR 4.4
CC
4
Cov
97%
new
2.0
_handle_element_start
2.0
_handle_element_end
2.0
CRAP 1.5
« Simple/PullParserEndToken.pm ↑ Summary Simple/SimpleTree.pm »
1 package Pod::Simple::TextContent;
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use Carp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use Pod::Simple ();
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 our $VERSION = '3.48';
7 2 our @ISA = ('Pod::Simple');
8  
9 5 ▶sub new {
Subroutine new: called CC=2 SCAR=7.0
Pod documented
10 5 my $self = shift;
11 5 my $new = $self->SUPER::new(@_);
12 5 ▶ $new->{'output_fh'} ||= *STDOUT{IO};
Condition50%1/2
$new->{"output_fh"} ||= *STDOUT{"IO"}
l!l
05
MC/DC0%0/1
$new->{"output_fh"} ||= *STDOUT{"IO"}
$new->{"output_fh"}
Truth table50%1/2
A
A= $new->{"output_fh"}
Aresult
11
00
13 5 $new->nix_X_codes(1);
14 5 return $new;
15 }
16  
17 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18  
19 1316 ▶sub _handle_element_start {
Subroutine _handle_element_start: called CC=2 SCAR=6.9
20 1316 ▶ print {$_[0]{'output_fh'}} "\n" unless $_[1] =~ m/^[A-Z]$/s;
Branch: 1 branch
BranchTrueFalseTotal
unless $_[1] =~ /^[A-Z]$/s 765 551 1316
21 1316 return;
22 }
23  
24 1774 ▶sub _handle_text {
Subroutine _handle_text: called CC=1 SCAR=0.0
25 1774 $_[1] =~ s/$Pod::Simple::shy//g;
26 1774 $_[1] =~ s/$Pod::Simple::nbsp/ /g;
27 1774 print {$_[0]{'output_fh'}} $_[1];
28 1774 return;
29 }
30  
31 1316 ▶sub _handle_element_end {
Subroutine _handle_element_end: called CC=2 SCAR=6.9
32 1316 ▶ print {$_[0]{'output_fh'}} "\n" unless $_[1] =~ m/^[A-Z]$/s;
Branch: 1 branch
BranchTrueFalseTotal
unless $_[1] =~ /^[A-Z]$/s 765 551 1316
33 1316 return;
34 }
35  
36 #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
37 2 1;
38  
39  
40 __END__
« Simple/PullParserEndToken.pm ↑ Summary Simple/SimpleTree.pm »