(t *testing.T)
| 42 | } |
| 43 | |
| 44 | func 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 | |
| 60 | func TestSetEnvWithDotEnv_WithLocalPath(t *testing.T) { |
| 61 | // Test that setEnvWithDotEnv still works with local paths |
nothing calls this directly
no test coverage detected