blib/lib/Lingy/StringBuilder.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
append
2.0
reverse
2.0
BEGIN
2.0
CRAP 2.0
1 use strict; use warnings;
2 package Lingy::StringBuilder;
3  
4 use Lingy::Common;
5 use base 'Lingy::String';
6  
7 sub append {
8 my ($self, $str) = @_;
9 STRING->new("$self$str");
10 }
11  
12 sub reverse {
13 STRING->new(join '', reverse split '', "$_[0]");
14 }
15  
16 1;