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             package Pod::Simple::Methody;
2 22     22   108797 use strict;
  22         77  
  22         840  
3 22     22   118 use warnings;
  22         45  
  22         1283  
4 22     22   13598 use Pod::Simple ();
  22         88  
  22         5984  
5             our $VERSION = '3.47';
6             our @ISA = ('Pod::Simple');
7              
8             # Yes, we could use named variables, but I want this to be impose
9             # as little an additional performance hit as possible.
10              
11             sub _handle_element_start {
12 4908     4908   9711 $_[1] =~ tr/-:./__/;
13 4908   100     29915 ( $_[0]->can( 'start_' . $_[1] )
14             || return
15             )->(
16             $_[0], $_[2]
17             );
18             }
19              
20             sub _handle_text {
21 6066   100 6066   22990 ( $_[0]->can( 'handle_text' )
22             || return
23             )->(
24             @_
25             );
26             }
27              
28             sub _handle_element_end {
29 4908     4908   7833 $_[1] =~ tr/-:./__/;
30 4908   100     26202 ( $_[0]->can( 'end_' . $_[1] )
31             || return
32             )->(
33             $_[0], $_[2]
34             );
35             }
36              
37             1;
38              
39              
40             __END__