MCPcopy
hub / github.com/docker/compose / TestLoadProject_MissingComposeFile

Function TestLoadProject_MissingComposeFile

pkg/compose/loader_test.go:310–321  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

308}
309
310func TestLoadProject_MissingComposeFile(t *testing.T) {
311 service, err := NewComposeService(nil)
312 assert.NilError(t, err)
313
314 // Should return an error for missing file
315 project, err := service.LoadProject(t.Context(), api.ProjectLoadOptions{
316 ConfigPaths: []string{"/nonexistent/compose.yaml"},
317 })
318
319 assert.Assert(t, err != nil)
320 assert.Assert(t, project == nil)
321}

Callers

nothing calls this directly

Calls 2

NewComposeServiceFunction · 0.85
LoadProjectMethod · 0.65

Tested by

no test coverage detected