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

Function TestLaunchAliasL

internal/cli/cmd_launch_test.go:103–114  ·  view source on GitHub ↗

`cam l` alias accepts the same args.

(t *testing.T)

Source from the content-addressed store, hash-verified

101
102// `cam l` alias accepts the same args.
103func TestLaunchAliasL(t *testing.T) {
104 isolatedHome(t)
105 storePath := filepath.Join(t.TempDir(), "store.db")
106 seedProvider(t, storePath, "e", "https://x", "claude", "m", "")
107 stdout, _, code := execute(t, "--store", storePath, "l", "claude", "--dry-run")
108 if code != 0 {
109 t.Fatalf("exit = %d", code)
110 }
111 if !strings.Contains(stdout, "Tool: claude") {
112 t.Fatalf("alias l output unexpected:\n%s", stdout)
113 }
114}
115
116// --dry-run prints the planned config writes for a tool that has a
117// config_target block (claude).

Callers

nothing calls this directly

Calls 3

isolatedHomeFunction · 0.85
seedProviderFunction · 0.85
executeFunction · 0.85

Tested by

no test coverage detected