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

Function TestComposeFileSetByProjectDirectory

pkg/e2e/compose_test.go:333–344  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

331}
332
333func TestComposeFileSetByProjectDirectory(t *testing.T) {
334 c := NewCLI(t)
335 defer c.cleanupWithDown(t, "dotenv")
336
337 dir := filepath.Join(".", "fixtures", "dotenv", "development")
338 cmd := c.NewDockerComposeCmd(t, "--project-directory", dir, "config")
339 res := icmd.RunCmd(cmd)
340 res.Assert(t, icmd.Expected{
341 ExitCode: 0,
342 Out: "image: backend:latest",
343 })
344}
345
346func TestComposeFileSetByEnvFile(t *testing.T) {
347 c := NewCLI(t)

Callers

nothing calls this directly

Calls 4

cleanupWithDownMethod · 0.95
NewDockerComposeCmdMethod · 0.95
NewCLIFunction · 0.85
RunCmdMethod · 0.80

Tested by

no test coverage detected