`cam ap` alias accepts the same args.
(t *testing.T)
| 63 | |
| 64 | // `cam ap` alias accepts the same args. |
| 65 | func TestApplyAliasAp(t *testing.T) { |
| 66 | home := isolatedHome(t) |
| 67 | storePath := filepath.Join(t.TempDir(), "store.db") |
| 68 | seedProvider(t, storePath, "e", "https://x", "claude", "m", "") |
| 69 | stdout, _, code := execute(t, "--store", storePath, "ap", "claude") |
| 70 | if code != 0 { |
| 71 | t.Fatal("expected zero exit") |
| 72 | } |
| 73 | if !strings.Contains(stdout, "Applied claude-code") { |
| 74 | t.Fatalf("alias ap output unexpected:\n%s", stdout) |
| 75 | } |
| 76 | // And the file really was written. |
| 77 | if _, err := os.Stat(filepath.Join(home, ".claude", "settings.json")); err != nil { |
| 78 | t.Errorf("settings.json not written via alias: %v", err) |
| 79 | } |
| 80 | } |
nothing calls this directly
no test coverage detected