lib/Pod/Perldoc/ToRtf.pm

filter: Statementstmt 60.8% 14 / 23 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 50.0% 4 / 8 Podpod 0.0% 0 / 4 totaltotal 42.8% 18 / 42 CC 4 SCAR 21.0
CC
4
Cov
48%
page_for_perldoc
20.0
is_pageable
2.0
write_with_binmode
2.0
CRAP 8.2
« lib/Pod/Perldoc/ToTerm.pm ↑ Summary lib/Pod/Perldoc/ToNroff.pm »
1 package Pod::Perldoc::ToRtf;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use parent qw( Pod::Simple::RTF );
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 $VERSION = '3.28';
8  
9 0 ▶sub is_pageable { 0 }
Subroutine is_pageable: not called CC=1 SCAR=6.9
Pod undocumented
10 0 ▶sub write_with_binmode { 0 }
Subroutine write_with_binmode: not called CC=1 SCAR=6.9
Pod undocumented
11 0 ▶sub output_extension { 'rtf' }
Subroutine output_extension: not called CC=1 SCAR=6.9
Pod undocumented
12  
13 0 ▶sub page_for_perldoc {
Subroutine page_for_perldoc: not called CC=4 SCAR=30.0
Pod undocumented
14 0 my($self, $tempfile, $perldoc) = @_;
15 0 ▶ return unless $perldoc->IS_MSWin32;
Branch: 1 branch
BranchTrueFalseTotal
unless $perldoc->IS_MSWin32 0 0 0
16  
17 0 ▶ my $rtf_pager = $ENV{'RTFREADER'} || 'write.exe';
Condition0%0/2
$ENV{'RTFREADER'} || 'write.exe'
l!l
00
MC/DC0%0/1
$ENV{'RTFREADER'} || 'write.exe'
$ENV{'RTFREADER'}
Truth table0%0/2
A
A= $ENV{'RTFREADER'}
Aresult
11
00
18  
19 0 $perldoc->aside( "About to launch <\"$rtf_pager\" \"$tempfile\">\n" );
20  
21 0 ▶ return 1 if system( qq{"$rtf_pager"}, qq{"$tempfile"} ) == 0;
Branch: 1 branch
BranchTrueFalseTotal
if system(qq["$rtf_pager"], qq["$tempfile"]) == 0 0 0 0
22 0 return 0;
23 }
24  
25 1 1;
26 __END__
« lib/Pod/Perldoc/ToTerm.pm ↑ Summary lib/Pod/Perldoc/ToNroff.pm »