| 1 | #-*- perl -*- | ||||||||||||||||||||
| 2 | #-*- coding: us-ascii -*- | ||||||||||||||||||||
| 3 | |||||||||||||||||||||
| 4 | package CSS::Yamaantaka::RotateL; | ||||||||||||||||||||
| 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::_ReverseGD | ||||||||||||||||||||
| 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' => 'left', | ||||||||||||||||||||
| 18 | 'right' => 'top', | ||||||||||||||||||||
| 19 | 'bottom' => 'right', | ||||||||||||||||||||
| 20 | 'left' => 'bottom', | ||||||||||||||||||||
| 21 | 51 | ▶ | }->{$direction} || | ||||||||||||||||||
|
Condition33%1/3
{'top', 'left', 'right', 'top', 'bottom', 'right', 'left', 'bottom'}->{$direction} || $direction
MC/DC0%0/2
{'top', 'left', 'right', 'top', 'bottom', 'right', 'left', 'bottom'}->{$direction} || $direction
{'top', 'left', 'right', 'top', 'bottom', 'right', 'left', 'bottom'}->{$direction}
$direction
Truth table33%1/3
A || B
A= {'top', 'left', 'right', 'top', 'bottom', 'right', 'left', 'bottom'}->{$direction}B= $direction
| |||||||||||||||||||||
| 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/wnes/; | |||||||||||||||||||
| 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, 2, 3, 0]; | |||||||||||||||||||
| 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[1, 2, 3, 0]; | |||||||||||||||||||
| 42 | 8 | return @part; | |||||||||||||||||||
| 43 | } | ||||||||||||||||||||
| 44 | |||||||||||||||||||||
| 45 | 21 | 1; | |||||||||||||||||||