(t *testing.T)
| 514 | } |
| 515 | |
| 516 | func TestResolveAlias_WithBothOptions(t *testing.T) { |
| 517 | home := t.TempDir() |
| 518 | t.Setenv("HOME", home) |
| 519 | |
| 520 | // Set up alias with both options |
| 521 | cfg, err := userconfig.Load() |
| 522 | require.NoError(t, err) |
| 523 | require.NoError(t, cfg.SetAlias("turbo", &userconfig.Alias{ |
| 524 | Path: "agentcatalog/coder", |
| 525 | Yolo: true, |
| 526 | Model: "anthropic/claude-sonnet-4-0", |
| 527 | })) |
| 528 | require.NoError(t, cfg.Save()) |
| 529 | |
| 530 | // Resolve alias options |
| 531 | alias := ResolveAlias("turbo") |
| 532 | require.NotNil(t, alias) |
| 533 | assert.True(t, alias.Yolo) |
| 534 | assert.Equal(t, "anthropic/claude-sonnet-4-0", alias.Model) |
| 535 | } |
| 536 | |
| 537 | func TestResolveAlias_WithSandboxOption(t *testing.T) { |
| 538 | home := t.TempDir() |
nothing calls this directly
no test coverage detected