Branch Coverage

bin/envdot
Criterion Covered Total %
branch 16 26 61.5


line true false branch
27 8 0 exists &Errno::ENOENT ? :
8 0 exists &Errno::EINVAL ? :
50 0 6 unless &GetOptions("man", \$man, "export!", \$export, "shell|s=s", \$shell, "dotenv|e=s", \$dotenv_filepath, "", \$read_from_stdin)
57 0 6 if $man
62 2 4 if (exists $ENV{$var_name}) { }
0 4 elsif ($read_from_stdin) { }
69 1 3 unless (-f $dotenv_filepath)
70 0 1 unless print {*STDERR;} "Error: File not found: '${dotenv_filepath}'\n"
81 1 4 unless (eval {
84 1 0 $l ? :
1 0 $fp ? :
0 1 unless print {*STDERR;} 'Error: ' . $err . ($l ? " line $l" : "") . ($fp ? " file '${fp}'" : "") . "\n"
92 0 4 unless print {*STDOUT;} convert_variables_into_commands($shell, @vars)