(t *testing.T)
| 293 | } |
| 294 | |
| 295 | func 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: |
nothing calls this directly
no test coverage detected
searching dependent graphs…