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

Function TestRunUpgradeForOrgInvalidRepoGlob

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

Source from the content-addressed store, hash-verified

99}
100
101func TestRunUpgradeForOrgInvalidRepoGlob(t *testing.T) {
102 err := runUpgradeForOrg(context.Background(), "octo", []string{"["}, upgradeOptions{ctx: context.Background()}, false, false, false)
103 require.Error(t, err)
104 assert.Contains(t, err.Error(), "invalid --repos pattern")
105}
106
107func TestRunUpgradeForOrgNoReposFound(t *testing.T) {
108 origSearch := searchOrgLockWorkflowReposFn

Callers

nothing calls this directly

Calls 3

runUpgradeForOrgFunction · 0.85
BackgroundMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected