Branch Coverage

blib/lib/JSON/Karabiner.pm
Criterion Covered Total %
branch 21 26 80.7


line true false branch
16 4 33 if ($opts)
17 0 4 if (ref $opts ne 'HASH')
21 2 35 unless $title
22 1 34 unless $file
23 1 33 unless $file =~ /\.json$/
32 31 2 unless (-d $self->{'_mod_file_dir'})
33 2 29 if ($opts->{'mod_file_dir'}) { }
36 0 29 unless $ENV{'HARNESS_ACTIVE'}
59 3 3 if ($using_dsl)
61 2 1 unless (@main::saved_manips)
75 0 3 unless ($s->{'_fake_write_flag'})
76 0 0 unless open FH, '>', $destination
94 2 28 unless $desc