MCPcopy
hub / github.com/docker/compose / TestSetEnvWithDotEnv_WithGitRemote

Function TestSetEnvWithDotEnv_WithGitRemote

cmd/compose/compose_oci_test.go:44–58  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

42}
43
44func TestSetEnvWithDotEnv_WithGitRemote(t *testing.T) {
45 // Test that setEnvWithDotEnv doesn't fail when using Git remotes
46 ctrl := gomock.NewController(t)
47 defer ctrl.Finish()
48 cli := mocks.NewMockCli(ctrl)
49
50 opts := ProjectOptions{
51 ConfigPaths: []string{"https://github.com/docker/compose.git"},
52 ProjectDir: "",
53 EnvFiles: []string{},
54 }
55
56 err := setEnvWithDotEnv(opts, cli)
57 assert.NilError(t, err, "setEnvWithDotEnv should not fail with Git remote path")
58}
59
60func TestSetEnvWithDotEnv_WithLocalPath(t *testing.T) {
61 // Test that setEnvWithDotEnv still works with local paths

Callers

nothing calls this directly

Calls 2

NewMockCliFunction · 0.92
setEnvWithDotEnvFunction · 0.85

Tested by

no test coverage detected