Branch Coverage

script/envdot
Criterion Covered Total %
branch 16 26 61.5


line true false branch
26 8 0 exists &Errno::ENOENT ? :
8 0 exists &Errno::EINVAL ? :
49 0 6 unless &GetOptions("man", \$man, "export!", \$export, "shell|s=s", \$shell, "dotenv|e=s", \$dotenv_filepath, "", \$read_from_stdin)
56 0 6 if $man
61 2 4 if (exists $ENV{$var_name}) { }
0 4 elsif ($read_from_stdin) { }
68 1 3 unless (-f $dotenv_filepath)
69 0 1 unless print {*STDERR;} "Error: File not found: '${dotenv_filepath}'\n"
80 1 4 unless (eval { do { @these_vars = get_dotenv_vars($dotenv_filepath); 1 } })
83 1 0 $l ? :
1 0 $fp ? :
0 1 unless print {*STDERR;} 'Error: ' . $err . ($l ? " line $l" : "") . ($fp ? " file '${fp}'" : "") . "\n"
91 0 4 unless print {*STDOUT;} convert_variables_into_commands($shell, @vars)