MCPcopy Create free account
hub / github.com/compose-spec/compose-go / TestProjectComposefilesFromSetOfFiles

Function TestProjectComposefilesFromSetOfFiles

cli/options_test.go:218–229  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

216}
217
218func 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
231func TestProjectComposefilesFromWorkingDir(t *testing.T) {
232 opts, err := NewProjectOptions([]string{

Callers

nothing calls this directly

Calls 4

NewProjectOptionsFunction · 0.85
WithWorkingDirectoryFunction · 0.85
WithNameFunction · 0.85
ProjectFromOptionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…