(t *testing.T)
| 153 | } |
| 154 | |
| 155 | func 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 | } |
nothing calls this directly
no test coverage detected