(t *testing.T)
| 216 | } |
| 217 | |
| 218 | func TestProjectComposefilesFromSetOfFiles(t *testing.T) { |
| 219 | opts, err := NewProjectOptions([]string{}, |
| 220 | WithWorkingDirectory("testdata/simple/"), |
| 221 | WithName("my_project"), |
| 222 | WithDefaultConfigPath, |
| 223 | ) |
| 224 | assert.NilError(t, err) |
| 225 | p, err := ProjectFromOptions(context.TODO(), opts) |
| 226 | assert.NilError(t, err) |
| 227 | absPath, _ := filepath.Abs(filepath.Join("testdata", "simple", "compose.yaml")) |
| 228 | assert.DeepEqual(t, p.ComposeFiles, []string{absPath}) |
| 229 | } |
| 230 | |
| 231 | func TestProjectComposefilesFromWorkingDir(t *testing.T) { |
| 232 | opts, err := NewProjectOptions([]string{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…