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

Function TestRunUpgradeCommandReposRequiresOrg

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

Source from the content-addressed store, hash-verified

310}
311
312func TestRunUpgradeCommandReposRequiresOrg(t *testing.T) {
313 cmd := NewUpgradeCommand()
314 cmd.SetArgs([]string{"--repos", "*-svc"})
315 err := cmd.Execute()
316 require.Error(t, err)
317 assert.Contains(t, err.Error(), "--repos requires --org")
318}
319
320func TestRunUpgradeForOrgSkipsFailedRepos(t *testing.T) {
321 origSearch := searchOrgLockWorkflowReposFn

Callers

nothing calls this directly

Calls 2

NewUpgradeCommandFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected