(t *testing.T)
| 86 | } |
| 87 | |
| 88 | func TestRejectExisting(t *testing.T) { |
| 89 | cs, restoreRun := run.Stub() |
| 90 | defer restoreRun(t) |
| 91 | // Only reject is registered: approve must not be called, otherwise the stub panics. |
| 92 | cs.Register(`git credential reject`, 0, "") |
| 93 | |
| 94 | u := &gitcredentials.Updater{ |
| 95 | GitClient: &git.Client{GitPath: "some/path/git"}, |
| 96 | } |
| 97 | require.NoError(t, u.RejectExisting("github.com")) |
| 98 | } |
nothing calls this directly
no test coverage detected