(t *testing.T)
| 93 | } |
| 94 | |
| 95 | func 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 | |
| 101 | func TestRunUpgradeForOrgInvalidRepoGlob(t *testing.T) { |
| 102 | err := runUpgradeForOrg(context.Background(), "octo", []string{"["}, upgradeOptions{ctx: context.Background()}, false, false, false) |
nothing calls this directly
no test coverage detected