Karabiner/Manipulator/Actions/To_delayed_if_invoked.pm untested

filter: Statementstmt 0.0% 0 / 26 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 35 CC 2 SCAR 11.5
CC
2
Cov
0%
new
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.1
1 package JSON::Karabiner::Manipulator::Actions::To_delayed_if_invoked ;
2 $JSON::Karabiner::Manipulator::Actions::To_delayed_if_invoked::VERSION = '0.008';
3 use strict;
4 use warnings;
5 use JSON;
6 use Carp;
7 use parent 'JSON::Karabiner::Manipulator::Actions::To';
8  
9 sub new {
10 my $class = shift;
11 my ($type, $value) = @_;
12 my $obj = $class->SUPER::new('to_delayed_action', $value);
13 $obj->{delayed_type} = 'invoked';
14 if ($value) {
15 $obj->{data} = $value,
16 } else {
17 $obj->{data} = {};
18 $obj->{data}{to_if_invoked} = [];
19  
20 # $obj->{data}{to_delayed_action}{to_if_invoked} = [];
21 }
22 return $obj;
23 }
24  
25 # ABSTRACT: to_delayed_if_invoked action
26  
27 1;
28  
29 __END__