MCPcopy Create free account
hub / github.com/docker/cli / TestParseEnvFileNonExistentFile

Function TestParseEnvFileNonExistentFile

cli/compose/loader/envfile_test.go:21–24  ·  view source on GitHub ↗

Test parseEnvFile for a non existent file

(t *testing.T)

Source from the content-addressed store, hash-verified

19
20// Test parseEnvFile for a non existent file
21func TestParseEnvFileNonExistentFile(t *testing.T) {
22 _, err := parseEnvFile("no_such_file")
23 assert.Check(t, is.ErrorType(err, os.IsNotExist))
24}
25
26// parseEnvFile with environment variable import definitions
27func TestParseEnvVariableDefinitionsFile(t *testing.T) {

Callers

nothing calls this directly

Calls 1

parseEnvFileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…