(t *testing.T)
| 294 | } |
| 295 | |
| 296 | func TestRunUpgradeCommandCreateIssueRequiresOrg(t *testing.T) { |
| 297 | cmd := NewUpgradeCommand() |
| 298 | cmd.SetArgs([]string{"--create-issue"}) |
| 299 | err := cmd.Execute() |
| 300 | require.Error(t, err) |
| 301 | assert.Contains(t, err.Error(), "--create-issue requires --org") |
| 302 | } |
| 303 | |
| 304 | func TestRunUpgradeCommandCreateIssueAndPRMutuallyExclusive(t *testing.T) { |
| 305 | cmd := NewUpgradeCommand() |
nothing calls this directly
no test coverage detected