Branch Coverage

blib/lib/Env/Dot/Functions.pm
Criterion Covered Total %
branch 43 48 89.5


line true false branch
66 24 0 if (-f $filepath) { }
79 0 21 if (exists $DOS_PLATFORMS{$Env::Dot::Functions::OSNAME}) { }
99 7 20 if ($r{'opts'}{'read:from_parent'})
101 4 3 if ($parent_filepath) { }
2 1 elsif (not $r{'opts'}{'read:allow_missing_parent'}) { }
125 7 15 if defined $parent_path and -f $parent_filepath
143 18 153 if (/
25 128 elsif (/
3 125 elsif (/
124 1 elsif (/
156 5 21 unless (exists $DOTENV_OPTIONS{$key})
192 119 5 if ($options{'file:type'} eq 'shell') { }
5 0 elsif ($options{'file:type'} eq 'plain') { }
193 95 24 if ($value =~ /
207 1 118 if ($name =~ /^ [[:space:]]{0,} export [[:space:]]{1,} /msx)
240 3 34 if $val eq "true" or $val eq "True"
241 1 36 if $val eq "false" or $val eq "False"
250 0 29 unless $fh->open("< $filepath")
254 0 29 unless $fh->close
264 1 8 unless ($msg)
275 1 14 unless ($err)
278 1 13 if (not $line and $filepath)
281 9 4 defined $line ? :
8 5 defined $filepath ? :