Compiled/Utils.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 2 totaltotal 94.1% 32 / 34 CC 2 SCAR 2.2
CC
2
Cov
100%
echo
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Compiled.pm ↑ Summary
1 2 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package Template::Compiled::Utils;
6  
7 2 our $AUTHORITY = 'cpan:TOBYINK';
8 2 our $VERSION = '0.002';
9  
10 2 use Exporter::Shiny our @EXPORT = qw(
11 echo
12 echof
13 2 ▶);
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 sub echo {
16 3 ▶ my $outref = do {
Subroutine echo: called CC=2 SCAR=6.9
Pod undocumented
17 3 my $caller = caller;
18 2 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
19 3 ${"$caller\::_OUT_REF"};
20 };
21 3 $$outref .= $_ for @_;
22 }
23  
24 sub echof {
25 2 ▶ my $fmt = shift;
Subroutine echof: called CC=1 SCAR=0.0
Pod undocumented
26 2 @_ = sprintf $fmt, @_;
27 2 goto \&echo;
28 }
29  
30 2 1;
« Compiled.pm ↑ Summary