blib/lib/ExtUtils/XSpp/Typemap/simple.pm

filter: Statementstmt 94.1% 16 / 17 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 80.0% 4 / 5 totaltotal 90.0% 27 / 30 CC 2 SCAR 2.6
CC
2
Cov
89%
init
2.0
BEGIN
1.0
cpp_type
1.0
CRAP 1.3
« blib/lib/ExtUtils/XSpp/Typemap/reference.pm ↑ Summary blib/lib/ExtUtils/XSpp/Node/EnumValue.pm »
1 package ExtUtils::XSpp::Typemap::simple;
2  
3 21 ▶use base 'ExtUtils::XSpp::Typemap';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2876 ▶sub init {
Subroutine init: called CC=2 SCAR=7.1
Pod undocumented
6 2876 my $this = shift;
7 2876 my %args = @_;
8  
9 2876 ▶ if( my $base = $args{base} ) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $base = $args{"base"}) 0 2876 2876
10 %args = ( xs_type => $base->{XS_TYPE},
11 xs_input_code => $base->{XS_INPUT_CODE},
12 xs_output_code => $base->{XS_OUTPUT_CODE},
13 0 %args );
14 }
15  
16 2876 $this->{TYPE} = $args{type};
17 2876 $this->{NAME} = $args{name};
18 2876 $this->{XS_TYPE} = $args{xs_type};
19 2876 $this->{XS_INPUT_CODE} = $args{xs_input_code};
20 2876 $this->{XS_OUTPUT_CODE} = $args{xs_output_code};
21 }
22  
23 227 ▶sub cpp_type { $_[0]->{TYPE}->print }
Subroutine cpp_type: called CC=1 SCAR=0.0
Pod documented
24 69 ▶sub output_code { undef } # likewise
Subroutine output_code: called CC=1 SCAR=0.0
Pod documented
25 106 ▶sub call_parameter_code { undef }
Subroutine call_parameter_code: called CC=1 SCAR=0.0
Pod documented
26 60 ▶sub call_function_code { undef }
Subroutine call_function_code: called CC=1 SCAR=0.0
Pod documented
27  
28 21 1;
« blib/lib/ExtUtils/XSpp/Typemap/reference.pm ↑ Summary blib/lib/ExtUtils/XSpp/Node/EnumValue.pm »