(t *testing.T, content string)
| 10 | ) |
| 11 | |
| 12 | func tmpFileWithContent(t *testing.T, content string) string { |
| 13 | t.Helper() |
| 14 | fileName := filepath.Join(t.TempDir(), "envfile") |
| 15 | err := os.WriteFile(fileName, []byte(content), 0o644) |
| 16 | assert.NilError(t, err) |
| 17 | return fileName |
| 18 | } |
| 19 | |
| 20 | // Test parseEnvFile for a non existent file |
| 21 | func TestParseEnvFileNonExistentFile(t *testing.T) { |
no outgoing calls
no test coverage detected
searching dependent graphs…