blib/lib/POD2/ES.pm

filter: Statementstmt 56.4% 22 / 39 Branchbran 0.0% 0 / 14 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 70.0% 7 / 10 Podpod 100% 4 / 4 totaltotal 49.2% 33 / 67 CC 8 SCAR 31.9
CC
8
Cov
42%
print_pod
56.0
print_pods
6.0
pod_info
2.0
CRAP 24.3
↑ Summary
1 package POD2::ES;
2 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use open ':utf8';
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use base 'Exporter';
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use base 'POD2::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
8
9 1 our $VERSION = '5.24.0.5';
10
11 1 our @EXPORT = qw(print_pod print_pods);
12
13 # Versions list
14 0 ▶sub pod_info {{
Subroutine pod_info: not called CC=1 SCAR=6.9
Pod documented
15 0 perl => '5.24.0',
16 perlbook => '5.24.0',
17 perlboot => '5.24.0',
18 perlbot => '5.24.0',
19 perlcheat => '5.24.0',
20 #perlclib => '5.24.0',
21 perlcommunity => '5.24.0',
22 #perldata => '5.24.0',
23 perldbmfilter => '5.24.0',
24 perldoc => '5.24.0',
25 #perlexperiment => '5.24.0',
26 perlfaq1 => '5.24.0',
27 perlfaq2 => '5.24.0',
28 perlfreebsd => '5.24.0',
29 perlfunc => '5.24.0',
30 #perlgit => '5.24.0',
31 #perlglossary => '5.24.0',
32 perlhacktut => '5.24.0',
33 perlhist => '5.24.0',
34 perlhurd => '5.24.0',
35 perlintro => '5.24.0',
36 perllol => '5.24.0',
37 perlmod => '5.24.0',
38 perlmodinstall => '5.24.0',
39 perlmroapi => '5.24.0',
40 perlnewmod => '5.24.0',
41 perlnumber => '5.24.0',
42 perlobj => '5.24.0',
43 perlootut => '5.24.0',
44 perlop => '5.24.0',
45 perlopenbsd => '5.24.0',
46 perlopentut => '5.24.0',
47 perlpragma => '5.24.0',
48 #perlre => '5.24.0',
49 perlreftut => '5.24.0',
50 perlsource => '5.24.0',
51 perlstyle => '5.24.0',
52 perltodo => '5.24.0',
53 perltooc => '5.24.0',
54 perltoot => '5.24.0',
55 perlunifaq => '5.24.0',
56 perlunitut => '5.24.0',
57 perlutil => '5.24.0',
58 }};
59
60 # String for perldoc with -L switch
61 1 ▶sub search_perlfunc_re {
Subroutine search_perlfunc_re: called CC=1 SCAR=0.0
Pod documented
62 1 return 'Lista de funciones de Perl en orden';
63 }
64
65 # Print information about a pod file
66 0 ▶sub print_pod {
Subroutine print_pod: not called CC=7 SCAR=40.3
Pod documented
67 0 my $self = shift;
68
69 0 ▶ my @args = @_ ? @_ : @ARGV;
Branch: 1 branch
BranchTrueFalseTotal
@_ ? : 0 0 0
70
71 0 ▶ unless (ref $self) {
Branch: 1 branch
BranchTrueFalseTotal
unless (ref $self) 0 0 0
72 0 ▶ if (defined $self) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $self) { } 0 0 0
73 0 ▶ if ($self ne __PACKAGE__) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self ne __PACKAGE__) 0 0 0
74 0 unshift @args, $self;
75 0 $self = __PACKAGE__;
76 }
77 }
78 else {
79 0 $self = __PACKAGE__;
80 }
81 }
82
83 0 my $pods = $self->pod_info;
84
85 0 ▶ while (@args) {
Branch: 1 branch
BranchTrueFalseTotal
if (@args) 0 0 0
86 0 (my $pod = lc(shift @args)) =~ s/\.pod$//;
87 0 ▶ if ( exists $pods->{$pod} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $pods->{$pod}) { } 0 0 0
88 0 print "\t'$pod' traducido correspondiente a Perl $pods->{$pod}\n";
89 }
90 else {
91 0 print "\t'$pod' todavĂ­a no existe\n";
92 }
93 }
94 }
95
96 # Print list of translated pods
97 0 ▶sub print_pods {
Subroutine print_pods: not called CC=2 SCAR=17.9
Pod documented
98 0 ▶ my $self = @_ ? shift : __PACKAGE__;
Branch: 1 branch
BranchTrueFalseTotal
@_ ? : 0 0 0
99
100 0 $self->SUPER::print_pods;
101 }
102
103 1 1;
104
105 __END__
↑ Summary