File Coverage

blib/lib/Pod/Simple/Methody.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition 6 6 100.0
subroutine 6 6 100.0
pod n/a
total 26 26 100.0


line stmt bran cond sub pod time code
1              
2             require 5;
3             package Pod::Simple::Methody;
4 19     19   79122 use strict;
  19         43  
  19         615  
5 19     19   6825 use Pod::Simple ();
  19         43  
  19         544  
6 19     19   103 use vars qw(@ISA $VERSION);
  19         32  
  19         3779  
7             $VERSION = '3.43';
8             @ISA = ('Pod::Simple');
9              
10             # Yes, we could use named variables, but I want this to be impose
11             # as little an additional performance hit as possible.
12              
13             sub _handle_element_start {
14 4863     4863   7426 $_[1] =~ tr/-:./__/;
15 4863   100     25062 ( $_[0]->can( 'start_' . $_[1] )
16             || return
17             )->(
18             $_[0], $_[2]
19             );
20             }
21              
22             sub _handle_text {
23 6041   100 6041   18961 ( $_[0]->can( 'handle_text' )
24             || return
25             )->(
26             @_
27             );
28             }
29              
30             sub _handle_element_end {
31 4863     4863   6526 $_[1] =~ tr/-:./__/;
32 4863   100     22111 ( $_[0]->can( 'end_' . $_[1] )
33             || return
34             )->(
35             $_[0], $_[2]
36             );
37             }
38              
39             1;
40              
41              
42             __END__