(t *testing.T)
| 99 | } |
| 100 | |
| 101 | func 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 | |
| 107 | func TestRunUpgradeForOrgNoReposFound(t *testing.T) { |
| 108 | origSearch := searchOrgLockWorkflowReposFn |
nothing calls this directly
no test coverage detected