MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / TestUpgradeAliasU

Function TestUpgradeAliasU

internal/cli/cmd_upgrade_test.go:41–50  ·  view source on GitHub ↗

`cam u` alias mirrors `cam upgrade`.

(t *testing.T)

Source from the content-addressed store, hash-verified

39
40// `cam u` alias mirrors `cam upgrade`.
41func TestUpgradeAliasU(t *testing.T) {
42 isolatedHome(t)
43 stdout, _, code := execute(t, "u", "gemini-cli", "--dry-run")
44 if code != 0 {
45 t.Fatalf("exit = %d", code)
46 }
47 if !strings.Contains(stdout, "Would upgrade gemini-cli") {
48 t.Fatalf("alias output:\n%s", stdout)
49 }
50}
51
52// Unknown targets fail loud.
53func TestUpgradeRejectsUnknownTarget(t *testing.T) {

Callers

nothing calls this directly

Calls 2

isolatedHomeFunction · 0.85
executeFunction · 0.85

Tested by

no test coverage detected