PerlIO/via/UnicodeDebug.pm

filter: Statementstmt 92.0% 23 / 25 Branchbran 25.0% 1 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 88.8% 8 / 9 Podpod 100% 2 / 2 totaltotal 85.0% 34 / 40 CC 3 SCAR 7.4
CC
3
Cov
83%
FILL
6.0
WRITE
2.0
BEGIN
1.0
CRAP 2.1
« Unicode/Debug.pm ↑ Summary
1 package PerlIO::via::UnicodeDebug;
2  
3 3 ▶use 5.008001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 ▶use Unicode::Debug 'unidecode';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 BEGIN
11 3 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
12 3 $PerlIO::via::UnicodeDebug::AUTHORITY = 'cpan:TOBYINK';
13 3 $PerlIO::via::UnicodeDebug::VERSION = '0.002';
14 }
15  
16 sub PUSHED
17 1 ▶{
Subroutine PUSHED: called CC=1 SCAR=0.0
Pod documented
18 1 bless \*PUSHED, $_[0];
19 }
20  
21 sub FILL
22 0 ▶{
Subroutine FILL: not called CC=2 SCAR=17.9
Pod documented
23 0 my $line = readline( $_[1] );
24 0 ▶ (defined $line) ? unidecode( $line ) : undef;
Branch: 1 branch
BranchTrueFalseTotal
defined $line ? : 0 0 0
25 }
26  
27 sub WRITE
28 1 ▶{
Subroutine WRITE: called CC=2 SCAR=7.0
29 1 my $x = $_[1];
30 1 utf8::decode($x);
31 1 unidecode($x);
32 1 ▶ ( print {$_[2]} $x ) ? length($_[1]) : -1;
Branch: 1 branch
BranchTrueFalseTotal
print({$_[2];} $x) ? : 1 0 1
33 }
34  
35 3 __PACKAGE__
36 __END__
« Unicode/Debug.pm ↑ Summary