lib/Pod/Perldoc/ToNroff.pm

filter: Statementstmt 47.2% 17 / 36 Branchbran 0.0% 0 / 6 Conditioncond 0.0% 0 / 5 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 26.3% 5 / 19 Podpod 0.0% 0 / 14 totaltotal 26.5% 22 / 83 CC 6 SCAR 20.7
CC
6
Cov
36%
parse_from_file
30.0
new
6.0
is_pageable
2.0
CRAP 8.0
« lib/Pod/Perldoc/ToRtf.pm ↑ Summary script/perldoc »
1 package Pod::Perldoc::ToNroff;
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::Perldoc::BaseTo);
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 # This is unlike ToMan.pm in that it emits the raw nroff source!
10  
11 0 ▶sub is_pageable { 1 } # well, if you ask for it...
Subroutine is_pageable: not called CC=1 SCAR=6.9
Pod undocumented
12 0 ▶sub write_with_binmode { 0 }
Subroutine write_with_binmode: not called CC=1 SCAR=6.9
Pod undocumented
13 0 ▶sub output_extension { 'man' }
Subroutine output_extension: not called CC=1 SCAR=6.9
Pod undocumented
14  
15 1 ▶use Pod::Man ();
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 0 ▶sub center { shift->_perldoc_elem('center' , @_) }
Subroutine center: not called CC=1 SCAR=6.9
Pod undocumented
18 0 ▶sub date { shift->_perldoc_elem('date' , @_) }
Subroutine date: not called CC=1 SCAR=6.9
Pod undocumented
19 0 ▶sub fixed { shift->_perldoc_elem('fixed' , @_) }
Subroutine fixed: not called CC=1 SCAR=6.9
Pod undocumented
20 0 ▶sub fixedbold { shift->_perldoc_elem('fixedbold' , @_) }
Subroutine fixedbold: not called CC=1 SCAR=6.9
Pod undocumented
21 0 ▶sub fixeditalic { shift->_perldoc_elem('fixeditalic' , @_) }
Subroutine fixeditalic: not called CC=1 SCAR=6.9
Pod undocumented
22 0 ▶sub fixedbolditalic { shift->_perldoc_elem('fixedbolditalic', @_) }
Subroutine fixedbolditalic: not called CC=1 SCAR=6.9
Pod undocumented
23 0 ▶sub quotes { shift->_perldoc_elem('quotes' , @_) }
Subroutine quotes: not called CC=1 SCAR=6.9
Pod undocumented
24 0 ▶sub release { shift->_perldoc_elem('release' , @_) }
Subroutine release: not called CC=1 SCAR=6.9
Pod undocumented
25 0 ▶sub section { shift->_perldoc_elem('section' , @_) }
Subroutine section: not called CC=1 SCAR=6.9
Pod undocumented
26  
27 0 ▶sub new { return bless {}, ref($_[0]) || $_[0] }
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
Condition0%0/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table0%0/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
28  
29 0 ▶sub parse_from_file {
Subroutine parse_from_file: not called CC=5 SCAR=34.0
Pod undocumented
30 0 my $self = shift;
31 0 my $file = $_[0];
32  
33 my @options =
34 0 map {; $_, $self->{$_} }
35 grep !m/^_/s,
36 keys %$self
37 ;
38  
39 0 ▶ defined(&Pod::Perldoc::DEBUG)
Branch: 3 branches
BranchTrueFalseTotal
defined &Pod::Perldoc::DEBUG and 0 and print "About to call new Pod::Man ", $Pod::Man::VERSION ? "(v$Pod::Man::VERSION) " : "", "with options: ", @options ? "[@options]" : "(nil)", "\n" 0 0 0
$Pod::Man::VERSION ? : 0 0 0
@options ? : 0 0 0
Condition0%0/2
defined &Pod::Perldoc::DEBUG and 0
!ll
00
MC/DC0%0/1
defined &Pod::Perldoc::DEBUG and 0
defined &Pod::Perldoc::DEBUG
Truth table0%0/2
A
A= defined &Pod::Perldoc::DEBUG
Aresult
00
11
40 and Pod::Perldoc::DEBUG()
41 and print "About to call new Pod::Man ",
42 $Pod::Man::VERSION ? "(v$Pod::Man::VERSION) " : '',
43 "with options: ",
44 @options ? "[@options]" : "(nil)", "\n";
45 ;
46  
47 0 Pod::Man->new(@options)->parse_from_file(@_);
48 }
49  
50 1 1;
51 __END__
« lib/Pod/Perldoc/ToRtf.pm ↑ Summary script/perldoc »