(t *testing.T)
| 273 | } |
| 274 | |
| 275 | func TestResolveAppID_NameFromComposeFile(t *testing.T) { |
| 276 | dir := t.TempDir() |
| 277 | mustWrite(t, dir, "compose.yaml", "name: from-yaml\nservices:\n svc:\n image: nginx\n") |
| 278 | unsetEnv(t, "COMPOSE_PROJECT_NAME") |
| 279 | unsetEnv(t, "COMPOSE_FILE") |
| 280 | |
| 281 | got := resolveAppIDIn(t.Context(), nil, dir) |
| 282 | assert.Equal(t, got, "from-yaml") |
| 283 | } |
| 284 | |
| 285 | func TestResolveAppID_EnvVarOverridesYAML(t *testing.T) { |
| 286 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected