(t *testing.T)
| 283 | } |
| 284 | |
| 285 | func TestResolveAppID_EnvVarOverridesYAML(t *testing.T) { |
| 286 | dir := t.TempDir() |
| 287 | mustWrite(t, dir, "compose.yaml", "name: from-yaml\nservices:\n svc:\n image: nginx\n") |
| 288 | t.Setenv("COMPOSE_PROJECT_NAME", "from-env") |
| 289 | unsetEnv(t, "COMPOSE_FILE") |
| 290 | |
| 291 | got := resolveAppIDIn(t.Context(), nil, dir) |
| 292 | assert.Equal(t, got, "from-env") |
| 293 | } |
| 294 | |
| 295 | func TestResolveAppID_NoComposeFileReturnsEmpty(t *testing.T) { |
| 296 | unsetEnv(t, "COMPOSE_PROJECT_NAME") |
nothing calls this directly
no test coverage detected