Simple/PullParserTextToken.pm

filter: Statementstmt 100% 16 / 16 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 6 / 6 Podpod 66.6% 2 / 3 totaltotal 81.2% 26 / 32 CC 3 SCAR 4.7
CC
3
Cov
86%
new
2.3
text
2.1
BEGIN
1.0
CRAP 1.6
« Simple/Methody.pm ↑ Summary Simple/PullParserEndToken.pm »
1 package Pod::Simple::PullParserTextToken;
2 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 10 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 10 ▶use Pod::Simple::PullParserToken ();
Subroutine BEGIN: called CC=1 SCAR=0.0
5 10 our @ISA = ('Pod::Simple::PullParserToken');
6 10 our $VERSION = '3.48';
7  
8 244 ▶sub new { # Class->new(text);
Subroutine new: called CC=2 SCAR=8.1
Pod undocumented
9 244 my $class = shift;
10 244 ▶ return bless ['text', @_], ref($class) || $class;
Condition33%1/3
ref $class || $class
l!l&&r!l&&!r
02440
MC/DC0%0/2
ref $class || $class
ref $class $class
Truth table33%1/3
A || B
A= ref $classB= $class
ABresult
1X1
011
000
11 }
12  
13 # Purely accessors:
14  
15 318 ▶sub text { (@_ == 2) ? ($_[0][1] = $_[1]) : $_[0][1] }
Subroutine text: called CC=2 SCAR=7.6
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
@_ == 2 ? : 0 318 318
16  
17 1 ▶sub text_r { \ $_[0][1] }
Subroutine text_r: called CC=1 SCAR=0.0
Pod documented
18  
19 10 1;
20  
21 __END__
« Simple/Methody.pm ↑ Summary Simple/PullParserEndToken.pm »