MCPcopy Index your code
hub / github.com/docker/compose / TestResolveAppID_NoComposeFileReturnsEmpty

Function TestResolveAppID_NoComposeFileReturnsEmpty

cmd/compose/hooks_test.go:295–301  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

293}
294
295func TestResolveAppID_NoComposeFileReturnsEmpty(t *testing.T) {
296 unsetEnv(t, "COMPOSE_PROJECT_NAME")
297 unsetEnv(t, "COMPOSE_FILE")
298
299 got := resolveAppIDIn(t.Context(), nil, t.TempDir())
300 assert.Equal(t, got, "")
301}
302
303// unsetEnv removes an env var for the lifetime of the test, restoring its
304// prior state on cleanup. t.Setenv("", "") is not equivalent to unset:

Callers

nothing calls this directly

Calls 3

unsetEnvFunction · 0.85
resolveAppIDInFunction · 0.85
TempDirMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…