(t *testing.T)
| 229 | } |
| 230 | |
| 231 | func TestProjectComposefilesFromWorkingDir(t *testing.T) { |
| 232 | opts, err := NewProjectOptions([]string{ |
| 233 | "testdata/simple/compose.yaml", |
| 234 | "testdata/simple/compose-with-overrides.yaml", |
| 235 | }, WithName("my_project")) |
| 236 | assert.NilError(t, err) |
| 237 | p, err := ProjectFromOptions(context.TODO(), opts) |
| 238 | assert.NilError(t, err) |
| 239 | currentDir, _ := os.Getwd() |
| 240 | assert.DeepEqual(t, p.ComposeFiles, []string{ |
| 241 | filepath.Join(currentDir, "testdata", "simple", "compose.yaml"), |
| 242 | filepath.Join(currentDir, "testdata", "simple", "compose-with-overrides.yaml"), |
| 243 | }) |
| 244 | } |
| 245 | |
| 246 | func TestProjectComposefilesFromStdin(t *testing.T) { |
| 247 | composeData := ` |
nothing calls this directly
no test coverage detected
searching dependent graphs…