File Coverage

blib/lib/Pod/Perldoc/ToTextOverstrike.pm
Criterion Covered Total %
statement 15 20 75.0
branch 0 6 0.0
condition 0 3 0.0
subroutine 5 6 83.3
pod 0 1 0.0
total 20 36 55.5


line stmt bran cond sub pod time code
1             # -*- perl -*-
2              
3             #
4             # Author: Slaven Rezic
5             #
6             # Copyright (C) 2009 Slaven Rezic. All rights reserved.
7             # This package is free software; you can redistribute it and/or
8             # modify it under the same terms as Perl itself.
9             #
10             # Mail: slaven@rezic.de
11             # WWW: http://www.rezic.de/eserte/
12             #
13              
14             require 5;
15             package Pod::Perldoc::ToTextOverstrike;
16 1     1   1177 use strict;
  1         2  
  1         40  
17 1     1   6 use warnings;
  1         2  
  1         42  
18              
19 1     1   6 use vars qw($VERSION);
  1         2  
  1         57  
20             $VERSION = "0.00_50";
21              
22 1     1   6 use base qw(Pod::Perldoc::ToText);
  1         1  
  1         108  
23              
24 1     1   667 use Pod::Text::Overstrike ();
  1         1366  
  1         198  
25              
26             sub parse_from_file {
27 0     0 0   my $self = shift;
28            
29             my @options =
30 0           map {; $_, $self->{$_} }
  0            
31             grep !m/^_/s,
32             keys %$self
33             ;
34            
35 0 0 0       defined(&Pod::Perldoc::DEBUG)
    0          
    0          
36             and Pod::Perldoc::DEBUG()
37             and print "About to call new Pod::Text::Overstrike ",
38             $Pod::Text::Overstrike::VERSION ? "(v$Pod::Text::Overstrike::VERSION) " : '',
39             "with options: ",
40             @options ? "[@options]" : "(nil)", "\n";
41             ;
42              
43 0           Pod::Text::Overstrike->new(@options)->parse_from_file(@_);
44             }
45              
46             1;
47              
48             __END__