Branch Coverage

blib/lib/JSON/Karabiner/Manipulator/Actions/From.pm
Criterion Covered Total %
branch 15 40 37.5


line true false branch
26 4 5 if ($last_arg and $last_arg =~ /^any|consumer_key_code|pointing_button$/)
30 0 9 unless @key_codes
31 4 5 if $s->{'code_set'}
34 0 5 if (scalar @key_codes > 1)
38 0 5 if ($key_codes[0] =~ /-([A-Z])|(\d+)$/)
42 0 5 if $letter_code or $ms
44 0 5 if (exists $s->{'data'}{$input_type})
54 0 1 unless $_[0]
72 1 2 if $$s{"has_${mod_type}_modifiers"}
81 2 0 if $keys[0] =~ /key_code|pointing|any/i
83 1 1 if (defined $s->{'data'}{'simultaneous'})
99 0 0 if $exists
104 0 0 if $$s{"so_${option}_is_set"} == 1
106 0 0 if ($option eq 'detect_key_down_uninterruptedly') { }
0 0 elsif ($option eq 'key_down_order' or $option eq 'key_up_order') { }
0 0 elsif ($option eq 'key_up_when') { }
0 0 elsif ($option eq 'to_after_key_up') { }
107 0 0 unless ($value =~ /true|false/)
111 0 0 unless ($value =~ /insenstive|strict|strict_inverse/)
115 0 0 unless ($value =~ /any|when/)