Karabiner/Manipulator/Actions/To_if_held_down.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 93.5% 29 / 31 CC 2 SCAR 2.6
CC
2
Cov
96%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Karabiner/Manipulator/Actions/To_if_alone.pm ↑ Summary Karabiner/Manipulator/Conditions.pm »
1 package JSON::Karabiner::Manipulator::Actions::To_if_held_down ;
2 1 $JSON::Karabiner::Manipulator::Actions::To_if_held_down::VERSION = '0.018';
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use JSON;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use parent 'JSON::Karabiner::Manipulator::Actions::To';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 ▶sub new {
Subroutine new: called CC=2 SCAR=7.0
Pod documented
10 2 my $class = shift;
11 2 my ($type, $value) = @_;
12 2 my $obj = $class->SUPER::new($type, $value);
13 2 ▶ $obj->{data} = $value || [],
Condition50%1/2
$value || []
l!l
02
MC/DC0%0/1
$value || []
$value
Truth table50%1/2
A
A= $value
Aresult
11
00
14 return $obj;
15 }
16  
17 # ABSTRACT: to_if_held_down action
18  
19 1 1;
20  
21 __END__
« Karabiner/Manipulator/Actions/To_if_alone.pm ↑ Summary Karabiner/Manipulator/Conditions.pm »