(t *testing.T)
| 203 | } |
| 204 | |
| 205 | func TestProjectFromSetOfFiles(t *testing.T) { |
| 206 | opts, err := NewProjectOptions([]string{ |
| 207 | "testdata/simple/compose.yaml", |
| 208 | "testdata/simple/compose-with-overrides.yaml", |
| 209 | }, WithName("my_project")) |
| 210 | assert.NilError(t, err) |
| 211 | p, err := ProjectFromOptions(context.TODO(), opts) |
| 212 | assert.NilError(t, err) |
| 213 | service, err := p.GetService("simple") |
| 214 | assert.NilError(t, err) |
| 215 | assert.Equal(t, service.Image, "haproxy") |
| 216 | } |
| 217 | |
| 218 | func TestProjectComposefilesFromSetOfFiles(t *testing.T) { |
| 219 | opts, err := NewProjectOptions([]string{}, |
nothing calls this directly
no test coverage detected
searching dependent graphs…