Branch Coverage

blib/lib/JSON/JQ.pm
Criterion Covered Total %
branch 24 36 66.6


line true false branch
28 0 0 unless exists $param->{'script'} or exists $param->{'script_file'}
31 51 0 if exists $param->{'script'}
32 0 51 if exists $param->{'script_file'}
34 1 50 exists $param->{'variable'} ? :
36 51 0 if $FindBin::Bin
38 1 50 exists $param->{'library_paths'} ? :
39 0 51 exists $param->{'script_file'} ? :
45 0 51 if isatty(*STDERR)
48 0 51 exists $param->{'debug_flag'} ? :
50 1 50 unless ($self->_init)
60 59 1 if (exists $param->{'data'}) { }
1 0 elsif (exists $param->{'json'}) { }
0 0 elsif (exists $param->{'json_file'}) { }
76 6 54 if $rc >= 10
77 4 56 if ($rc == 1) { }
2 54 elsif ($rc == 4 and @{$self->{'_errors'};} == 0) { }
0 54 elsif ($rc != 0) { }
88 53 7 wantarray ? :