blib/lib/Template/Alloy/XS.pm

filter: Statementstmt 89.2% 25 / 28 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 88.8% 8 / 9 Podpod 0.0% 0 / 1 totaltotal 87.5% 35 / 40 CC 2 SCAR 2.6
CC
2
Cov
90%
__dump_any
2.0
play_tree
2.0
BEGIN
1.0
CRAP 1.3
↑ Summary XS.xs »
1 package Template::Alloy::XS;
2  
3 =head1 NAME
4  
5 Template::Alloy::XS - XS version of key parts of Template::Alloy
6  
7 =cut
8  
9 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 3 ▶use XSLoader;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 3 ▶use v5.8.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 3 ▶use Template::Alloy 1.015;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 3 ▶use base qw(Template::Alloy);
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 3 our $VERSION = '1.004';
17 3 XSLoader::load('Template::Alloy::XS', $VERSION);
18  
19 ### method used for debugging XS
20 0 ▶sub __dump_any {
Subroutine __dump_any: not called CC=1 SCAR=6.9
21 0 my ($self, $data) = @_;
22 0 require Data::Dumper;
23 0 print Data::Dumper::Dumper($data);
24 }
25  
26 ### this is here because I don't know how to call
27 ### builtins from XS - anybody know how?
28 3 ▶sub __lc { lc $_[0] }
Subroutine __lc: called CC=1 SCAR=0.0
29  
30 4419 ▶sub play_tree {
Subroutine play_tree: called CC=2 SCAR=6.9
Pod undocumented
31 4419 my $self = shift;
32 4419 ▶ return $self->stream_tree(@_) if $self->{'STREAM'};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"STREAM"} 1399 3020 4419
33 3020 require Template::Alloy::Play;
34 3020 $self->play_tree_xs(@_);
35 }
36  
37 3 1;
38  
39 __END__
↑ Summary XS.xs »