blib/lib/Circle/TaggedString.pm

filter: Statementstmt 58.8% 10 / 17 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 1 totaltotal 40.6% 13 / 32 SCAR 19.7
CC
4
Cov
42%
squash
12.0
__ANON__
6.0
BEGIN
1.0
CRAP 7.2
« Build ↑ Summary blib/lib/Circle/Widget/Box.pm »
1 # You may distribute under the terms of the GNU General Public License
2 #
3 # (C) Paul Evans, 2008-2010 -- leonerd@leonerd.org.uk
4  
5 package Circle::TaggedString;
6  
7 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 4 ▶use base qw( String::Tagged );
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 sub squash
13 {
14 0 ▶ my $self = shift;
Subroutine squash: not called CC=3 SCAR=24.8
Pod undocumented
15  
16 0 my @output;
17 $self->iter_substr_nooverlap( sub {
18 0 ▶ my ( $str, %format ) = @_;
Subroutine __ANON__: not called CC=2 SCAR=17.9
19 0 ▶ push @output, %format ? [ $str, %format ] : $str;
Branch: 1 branch
BranchTrueFalseTotal
%format ? : 0 0 0
20 0 } );
21  
22 0 ▶ return $output[0] if @output == 1 and !ref $output[0];
Branch: 1 branch
BranchTrueFalseTotal
if @output == 1 and not ref $output[0] 0 0 0
Condition0%0/3
@output == 1 and not ref $output[0]
!ll&&!rl&&r
000
MC/DC0%0/2
@output == 1 and not ref $output[0]
@output == 1 not ref $output[0]
Truth table0%0/3
A and not(B)
A= @output == 1B= not ref $output[0]
ABresult
0X0
100
111
23 0 return \@output;
24 }
25  
26 4 0x55AA;
« Build ↑ Summary blib/lib/Circle/Widget/Box.pm »