Perlito5/Runtime/Sprintf.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 19 CC 2 SCAR 13.9
CC
2
Cov
0%
sprintf_vd
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 4.0
1 package Perlito5::Runtime::Sprintf;
2 use strict;
3 use warnings;
4  
5 # a pure Perl implementation of some sprintf() helpers
6  
7 sub sprintf_vd {
8 # "%vd"
9 my ($v) = shift;
10 if (UNIVERSAL::isa($v, "version")) {
11 $v = join( "", map { chr($_) } @{ $v->{version} } );
12 }
13 return join( ".", map { ord($_) } split //, $v );
14 }
15  
16 1;
17