(t *testing.T)
| 138 | } |
| 139 | |
| 140 | func TestAliasAreSet(t *testing.T) { |
| 141 | f := &cmdutil.Factory{} |
| 142 | ios, _, _, _ := iostreams.Test() |
| 143 | f.IOStreams = ios |
| 144 | f.Config = func() (gh.Config, error) { return setupMockOAuthConfig(t, "oauth_token"), nil } |
| 145 | |
| 146 | cmd := NewCmdAgentTask(f) |
| 147 | |
| 148 | require.ElementsMatch(t, []string{"agent-tasks", "agent", "agents"}, cmd.Aliases) |
| 149 | } |
nothing calls this directly
no test coverage detected