Branch Coverage

blib/lib/Psh/Options.pm
Criterion Covered Total %
branch 14 50 28.0


line true false branch
34 0 39 unless $option
35 0 39 unless @value
37 6 33 if ($env_options{$option}) { }
38 6 0 if (@value > 1 or ref $value[0] and ref $value[0] eq 'ARRAY') { }
39 6 0 if (ref $value[0])
42 6 0 if ($options{'array_exports'} and $options{'array_exports'}{$option}) { }
52 0 33 if (@value > 1) { }
64 18 148 if ($env_options{$option}) { }
66 18 0 if ($options{'array_exports'} and $options{'array_exports'}{$option})
72 165 1 if (defined $val)
73 0 165 if (wantarray) { }
74 0 0 if (ref $val and ref $val eq 'ARRAY') { }
0 0 elsif (ref $val and ref $val eq 'HASH') { }
92 0 0 if (ref $tmpval) { }
93 0 0 if (ref $tmpval eq 'HASH') { }
0 0 elsif (ref $tmpval eq 'ARRAY') { }
0 0 elsif (ref $tmpval eq 'CODE') { }
96 0 0 unless defined $k
97 0 0 if (defined $v) { }
107 0 0 if (defined $_) { }
118 0 0 if (defined $tmpval) { }
119 0 0 if ($noquote) { }
133 0 0 if exists $options{$option} or $env_options{$option} and exists $ENV{uc $option}
140 0 0 if ($env_options{$option}) { }
150 0 0 if exists $ENV{uc $_}