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

filter: Statementstmt 100% 16 / 16 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 66.6% 2 / 3 totaltotal 96.3% 26 / 27 CC 2 SCAR 2.5
CC
2
Cov
100%
print
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/ExtUtils/XSpp/Node/EnumValue.pm ↑ Summary blib/lib/ExtUtils/XSpp/Exception.pm »
1 package ExtUtils::XSpp::Node::Preprocessor;
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 22 ▶sub init {
Subroutine init: called CC=1 SCAR=0.0
Pod documented
7 22 my $this = shift;
8 22 my %args = @_;
9  
10 22 $this->SUPER::init( %args );
11 22 $this->{SYMBOL} = $args{symbol};
12 }
13  
14 22 ▶sub print {
Subroutine print: called CC=2 SCAR=6.9
Pod documented
15 22 ▶ $_[0]->rows->[0] . "\n" .
Branch: 1 branch
BranchTrueFalseTotal
$_[0]->symbol ? : 12 10 22
16 ( $_[0]->symbol ? '#define ' . $_[0]->symbol . "\n\n" : "\n" )
17 }
18  
19 34 ▶sub symbol { $_[0]->{SYMBOL} }
Subroutine symbol: called CC=1 SCAR=0.0
Pod undocumented
20  
21 21 1;
« blib/lib/ExtUtils/XSpp/Node/EnumValue.pm ↑ Summary blib/lib/ExtUtils/XSpp/Exception.pm »