Branch Coverage

blib/lib/JSON/Karabiner/Manipulator.pm
Criterion Covered Total %
branch 30 50 60.0


line true false branch
19 27 3 if $_[0] =~ /^JSON::Karabiner::Manipulator$/
43 6 13 if ($is_action_function)
56 0 13 if ($is_condition_function)
70 0 39 unless @args
74 33 6 if (ref $s) { }
85 0 30 unless $type
100 0 7 unless $type
106 5 2 if (defined $s->{'actions'}{'conditions'}) { }
117 0 1 unless $desc
123 0 1 unless $param
124 0 1 unless $value
144 0 1 unless $param_exists
147 1 0 if ($param =~ /alone/) { }
0 0 elsif ($param =~ /down/) { }
0 0 elsif ($param =~ /delay/) { }
0 0 elsif ($param =~ /simultaneous/) { }
164 10 22 unless $obj->{'_disable_validity_tests'}
178 2 3 unless (@kb_obj_args)
197 0 3 unless (@kb_obj_args)
201 0 0 unless $title or $main::file_written
202 0 3 unless ($title)
210 3 0 if ($s->{'_fake_write_flag'})
231 2 3 unless (@kb_obj_args)
244 2 8 unless (defined $from)
248 1 7 unless (%$from)