Branch Coverage

blib/lib/JSON/Karabiner/Manipulator/Actions/To.pm
Criterion Covered Total %
branch 31 40 77.5


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 39 82 if ($s->{'def_name'} eq 'to_delayed_action') { }
67 20 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 7 unless defined $name
111 0 7 unless defined $value
113 1 6 if ($value =~ /^\d+$/)
127 0 6 unless $name
129 0 6 unless defined $value
141 6 6 unless $lkc
143 0 6 if (exists $lkc->{'modifiers'})