Branch Coverage

blib/lib/JSON/Karabiner/Manipulator/Actions/To.pm
Criterion Covered Total %
branch 29 38 76.3


line true false branch
25 78 0 if (ref $s) { }
33 12 66 if ($last_arg and $last_arg =~ /^any|consumer_key_code|pointing_button$/)
37 6 72 unless @key_codes
38 0 72 if $s->{'code_set'}
47 24 66 if ($key_code =~ /-([A-Z])|(\d+)$/)
54 6 84 if $letter_code and $letter_code eq 'L'
55 6 84 if $letter_code and $letter_code eq 'H'
56 6 84 if $letter_code and $letter_code eq 'R'
57 6 84 if $ms
66 38 82 if ($s->{'def_name'} eq 'to_delayed_action') { }
67 19 19 if ($s->{'delayed_type'} eq 'invoked') { }
92 0 12 unless ($option =~ /^language|input_source_id|input_mode_id$/)
102 12 0 if not $existing
109 0 6 unless defined $name
111 0 6 unless defined $value
123 0 6 unless $name
125 0 6 unless defined $value
137 6 6 unless $lkc
139 0 6 if (exists $lkc->{'modifiers'})