File Coverage

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              
2             require 5;
3             package Pod::Simple::PullParserTextToken;
4 10     10   63 use Pod::Simple::PullParserToken ();
  10         17  
  10         234  
5 10     10   48 use strict;
  10         18  
  10         230  
6 10     10   45 use vars qw(@ISA $VERSION);
  10         15  
  10         1605  
7             @ISA = ('Pod::Simple::PullParserToken');
8             $VERSION = '3.43';
9              
10             sub new { # Class->new(text);
11 243     243 0 370 my $class = shift;
12 243   33     1075 return bless ['text', @_], ref($class) || $class;
13             }
14              
15             # Purely accessors:
16              
17 317 50   317 1 1244 sub text { (@_ == 2) ? ($_[0][1] = $_[1]) : $_[0][1] }
18              
19 1     1 1 5 sub text_r { \ $_[0][1] }
20              
21             1;
22              
23             __END__