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

Function TestRunUpgradeForOrgEmptyOrg

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

Source from the content-addressed store, hash-verified

93}
94
95func TestRunUpgradeForOrgEmptyOrg(t *testing.T) {
96 err := runUpgradeForOrg(context.Background(), " ", nil, upgradeOptions{ctx: context.Background()}, false, false, false)
97 require.Error(t, err)
98 assert.Contains(t, err.Error(), "--org cannot be empty")
99}
100
101func TestRunUpgradeForOrgInvalidRepoGlob(t *testing.T) {
102 err := runUpgradeForOrg(context.Background(), "octo", []string{"["}, upgradeOptions{ctx: context.Background()}, false, false, false)

Callers

nothing calls this directly

Calls 3

runUpgradeForOrgFunction · 0.85
BackgroundMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected