blib/lib/Games/Chess/Position/Unicode.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.4% 27 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package Games::Chess::Position::Unicode;
2  
3 2 our $VERSION = '0.01';
4  
5 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 ▶use Encode ();
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use Games::Chess ();
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 ▶use base 'Games::Chess::Position';
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 2 ▶sub to_text {
Subroutine to_text: called CC=1 SCAR=0.0
Pod undocumented
14 2 my $self = shift;
15  
16 2 my $pos = $self->SUPER::to_text;
17 2 $pos =~ tr/pnbrqkPNBRQK/♟♞♝♜♛♚♙♘♗♖♕♔/;
18  
19 2 return Encode::encode_utf8($pos);
20 }
21  
22 2 1 && q[Queens Of The Stone Age - Long Slow Goodbye];
23  
24 __END__
↑ Summary