File Coverage

blib/lib/PLS/Parser/Pod/Builtin.pm
Criterion Covered Total %
statement 9 18 50.0
branch 0 2 0.0
condition n/a
subroutine 3 5 60.0
pod 0 2 0.0
total 12 27 44.4


line stmt bran cond sub pod time code
1             package PLS::Parser::Pod::Builtin;
2              
3 13     13   89 use strict;
  13         35  
  13         539  
4 13     13   67 use warnings;
  13         26  
  13         1049  
5              
6 13     13   75 use parent 'PLS::Parser::Pod';
  13         32  
  13         96  
7              
8             =head1 NAME
9              
10             PLS::Parser::Pod::Builtin
11              
12             =head1 DESCRIPTION
13              
14             This attempts to find POD for a Perl builtin functions or keywords.
15              
16             =cut
17              
18             sub new
19             {
20 0     0 0   my ($class, @args) = @_;
21              
22 0           my %args = @args;
23 0           my $self = $class->SUPER::new(%args);
24 0           $self->{function} = $args{function};
25              
26 0           return $self;
27             } ## end sub new
28              
29             sub find
30             {
31 0     0 0   my ($self) = @_;
32              
33 0           my ($ok, $markdown) = $self->run_perldoc_command('-Tuf', $self->{function});
34              
35 0 0         $self->{markdown} = $markdown if $ok;
36 0           return $ok;
37             } ## end sub find
38              
39             1;