blib/lib/PLS/Parser/Pod/Builtin.pm

filter: Statementstmt 52.6% 10 / 19 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 46.4% 13 / 28 CC 2 SCAR 10.4
CC
2
Cov
48%
find
6.0
new
2.0
BEGIN
1.0
CRAP 2.8
« blib/lib/PLS/Parser/PackageSymbols.pm ↑ Summary blib/lib/PLS/Server/Response/RangeFormatting.pm »
1 package PLS::Parser::Pod::Builtin;
2  
3 15 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 15 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 15 ▶use parent 'PLS::Parser::Pod';
Subroutine BEGIN: called CC=1 SCAR=0.0
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 0 ▶{
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
20 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 0 ▶{
Subroutine find: not called CC=2 SCAR=17.9
Pod undocumented
31 0 my ($self) = @_;
32  
33 0 my ($ok, $markdown) = $self->run_perldoc_command('-Tuf', $self->{function});
34  
35 0 ▶ $self->{markdown} = $markdown if $ok;
Branch: 1 branch
BranchTrueFalseTotal
if $ok 0 0 0
36 0 return $ok;
37 } ## end sub find
38  
39 15 1;
« blib/lib/PLS/Parser/PackageSymbols.pm ↑ Summary blib/lib/PLS/Server/Response/RangeFormatting.pm »