(t *testing.T)
| 26 | ) |
| 27 | |
| 28 | func TestSetEnvWithDotEnv_WithOCIArtifact(t *testing.T) { |
| 29 | // Test that setEnvWithDotEnv doesn't fail when using OCI artifacts |
| 30 | ctrl := gomock.NewController(t) |
| 31 | defer ctrl.Finish() |
| 32 | cli := mocks.NewMockCli(ctrl) |
| 33 | |
| 34 | opts := ProjectOptions{ |
| 35 | ConfigPaths: []string{"oci://docker.io/dockersamples/welcome-to-docker"}, |
| 36 | ProjectDir: "", |
| 37 | EnvFiles: []string{}, |
| 38 | } |
| 39 | |
| 40 | err := setEnvWithDotEnv(opts, cli) |
| 41 | assert.NilError(t, err, "setEnvWithDotEnv should not fail with OCI artifact path") |
| 42 | } |
| 43 | |
| 44 | func TestSetEnvWithDotEnv_WithGitRemote(t *testing.T) { |
| 45 | // Test that setEnvWithDotEnv doesn't fail when using Git remotes |
nothing calls this directly
no test coverage detected