MCPcopy Create free account
hub / github.com/cli/cli / TestAliasAreSet

Function TestAliasAreSet

pkg/cmd/agent-task/agent_task_test.go:155–164  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

153}
154
155func TestAliasAreSet(t *testing.T) {
156 f := &cmdutil.Factory{}
157 ios, _, _, _ := iostreams.Test()
158 f.IOStreams = ios
159 f.Config = func() (gh.Config, error) { return setupMockOAuthConfig(t, "oauth_token"), nil }
160
161 cmd := NewCmdAgentTask(f)
162
163 require.ElementsMatch(t, []string{"agent-tasks", "agent", "agents"}, cmd.Aliases)
164}

Callers

nothing calls this directly

Calls 3

TestFunction · 0.92
setupMockOAuthConfigFunction · 0.85
NewCmdAgentTaskFunction · 0.85

Tested by

no test coverage detected