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              
2             use strict;
3 11     11   65 use warnings;
  11         22  
  11         273  
4 11     11   44  
  11         246  
  11         470  
5             use parent 'PLS::Parser::Pod';
6 11     11   59  
  11         14  
  11         53  
7             =head1 NAME
8              
9             PLS::Parser::Pod::Builtin
10              
11             =head1 DESCRIPTION
12              
13             This attempts to find POD for a Perl builtin functions or keywords.
14              
15             =cut
16              
17             {
18             my ($class, @args) = @_;
19              
20 0     0 0   my %args = @args;
21             my $self = $class->SUPER::new(%args);
22 0           $self->{function} = $args{function};
23 0            
24 0           return $self;
25             } ## end sub new
26 0            
27             {
28             my ($self) = @_;
29              
30             my ($ok, $markdown) = $self->run_perldoc_command('-Tuf', $self->{function});
31 0     0 0    
32             $self->{markdown} = $markdown if $ok;
33 0           return $ok;
34             } ## end sub find
35 0 0          
36 0           1;