MCPcopy Create free account
hub / github.com/github/gh-aw / TestRunUpgradeCommandCreateIssueRequiresOrg

Function TestRunUpgradeCommandCreateIssueRequiresOrg

pkg/cli/upgrade_org_test.go:296–302  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

294}
295
296func 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
304func TestRunUpgradeCommandCreateIssueAndPRMutuallyExclusive(t *testing.T) {
305 cmd := NewUpgradeCommand()

Callers

nothing calls this directly

Calls 2

NewUpgradeCommandFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected