blib/lib/ExtUtils/XSpp/Node/Comment.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 2 / 2 totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/ExtUtils/XSpp.pm ↑ Summary blib/lib/ExtUtils/XSpp/Node/File.pm »
1 package ExtUtils::XSpp::Node::Comment;
2 21 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 21 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 21 ▶use base 'ExtUtils::XSpp::Node::Raw';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 =head1 NAME
7  
8 ExtUtils::XSpp::Node::Comment - Node representing a comment in the source file
9  
10 =head1 DESCRIPTION
11  
12 An L<ExtUtils::XSpp::Node::Raw> subclass representing a piece of raw data
13 that should be included in the output verbatim, but with comment markers prefixed.
14  
15 // This is a comment!
16  
17 would become something like
18  
19 ## This is a comment!
20  
21 =head1 METHODS
22  
23 =head2 new
24  
25 Creates a new C<ExtUtils::XSpp::Node::Comment>.
26  
27 Named parameters: C<rows> should be a reference to
28 an array of source code comment lines.
29  
30 =cut
31  
32 5 ▶sub init {
Subroutine init: called CC=1 SCAR=0.0
Pod documented
33 5 my $this = shift;
34 5 my %args = @_;
35  
36 5 $this->{ROWS} = $args{rows};
37 }
38  
39 5 ▶sub print {
Subroutine print: called CC=1 SCAR=0.0
Pod documented
40 5 my $this = shift;
41 5 my $state = shift;
42  
43 5 return "\n";
44 }
45  
46 21 1;
« blib/lib/ExtUtils/XSpp.pm ↑ Summary blib/lib/ExtUtils/XSpp/Node/File.pm »