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

Function TestProjectNameFromWorkingDir

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

Source from the content-addressed store, hash-verified

324}
325
326func TestProjectNameFromWorkingDir(t *testing.T) {
327 opts, err := NewProjectOptions([]string{
328 "testdata/env-file/compose-with-env-file.yaml",
329 })
330 assert.NilError(t, err)
331 p, err := ProjectFromOptions(context.TODO(), opts)
332 assert.NilError(t, err)
333 assert.Equal(t, p.Name, "env-file")
334}
335
336func TestEnvMap(t *testing.T) {
337 m := map[string]string{}

Callers

nothing calls this directly

Calls 2

NewProjectOptionsFunction · 0.85
ProjectFromOptionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…