File Coverage

blib/lib/Pod/Simple/PullParserTextToken.pm
Criterion Covered Total %
statement 13 13 100.0
branch 1 2 50.0
condition 1 3 33.3
subroutine 6 6 100.0
pod 2 3 66.6
total 23 27 85.1


line stmt bran cond sub pod time code
1             package Pod::Simple::PullParserTextToken;
2 10     10   63 use strict;
  10         20  
  10         376  
3 10     10   95 use warnings;
  10         15  
  10         481  
4 10     10   51 use Pod::Simple::PullParserToken ();
  10         18  
  10         1852  
5             our @ISA = ('Pod::Simple::PullParserToken');
6             our $VERSION = '3.47';
7              
8             sub new { # Class->new(text);
9 244     244 0 397 my $class = shift;
10 244   33     1252 return bless ['text', @_], ref($class) || $class;
11             }
12              
13             # Purely accessors:
14              
15 318 50   318 1 1575 sub text { (@_ == 2) ? ($_[0][1] = $_[1]) : $_[0][1] }
16              
17 1     1 1 2 sub text_r { \ $_[0][1] }
18              
19             1;
20              
21             __END__