Yamaantaka/MirrorTR_BL.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 4 totaltotal 77.1% 27 / 35 CC 2 SCAR 3.1
CC
2
Cov
91%
fixBoxDirectionPart
2.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« Yamaantaka/MirrorTL_BR.pm ↑ Summary Yamaantaka/RotateL.pm »
1 #-*- perl -*-
2 #-*- coding: us-ascii -*-
3  
4 package CSS::Yamaantaka::MirrorTR_BL;
5  
6 21 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 #use warnings;
8 21 ▶use base qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
9 CSS::Yamaantaka::_NoReverseLR
10 CSS::Yamaantaka::_NoReverseGD
11 CSS::Yamaantaka::_SwapHV
12 21 );
13  
14 51 ▶sub fixBoxDirectionPart {
Subroutine fixBoxDirectionPart: called CC=2 SCAR=8.1
Pod undocumented
15 51 my $direction = $_[1];
16 return {
17 'top' => 'right',
18 'right' => 'top',
19 'bottom' => 'left',
20 'left' => 'bottom',
21 51 ▶ }->{$direction} ||
Condition33%1/3
{'top', 'right', 'right', 'top', 'bottom', 'left', 'left', 'bottom'}->{$direction} || $direction
l!l&&r!l&&!r
5100
MC/DC0%0/2
{'top', 'right', 'right', 'top', 'bottom', 'left', 'left', 'bottom'}->{$direction} || $direction
{'top', 'right', 'right', 'top', 'bottom', 'left', 'left', 'bottom'}->{$direction} $direction
Truth table33%1/3
A || B
A= {'top', 'right', 'right', 'top', 'bottom', 'left', 'left', 'bottom'}->{$direction}B= $direction
ABresult
1X1
011
000
22 $direction;
23 }
24  
25 8 ▶sub fixCursorPositions {
Subroutine fixCursorPositions: called CC=1 SCAR=0.0
Pod undocumented
26 8 my $direction = $_[1];
27 8 $direction =~ tr/nesw/enws/;
28 8 return $direction;
29 }
30  
31 6 ▶sub reorderFourPartNotation {
Subroutine reorderFourPartNotation: called CC=1 SCAR=0.0
Pod undocumented
32 6 shift;
33 6 my @part = @_;
34 6 @part = @part[1, 0, 3, 2];
35 6 return @part;
36 }
37  
38 8 ▶sub reorderBorderRadiusSubparts {
Subroutine reorderBorderRadiusSubparts: called CC=1 SCAR=0.0
Pod undocumented
39 8 shift;
40 8 my @part = @_;
41 8 @part = @part[2, 1, 0, 3];
42 8 return @part;
43 }
44  
45 21 1;
« Yamaantaka/MirrorTL_BR.pm ↑ Summary Yamaantaka/RotateL.pm »