(t *testing.T)
| 25 | } |
| 26 | |
| 27 | func fillCredentials(t *testing.T) string { |
| 28 | gc := &git.Client{} |
| 29 | fillCmd, err := gc.Command(context.Background(), "credential", "fill") |
| 30 | require.NoError(t, err) |
| 31 | |
| 32 | fillCmd.Stdin = bytes.NewBufferString(heredoc.Docf(` |
| 33 | protocol=https |
| 34 | host=%s |
| 35 | `, "github.com")) |
| 36 | |
| 37 | b, err := fillCmd.Output() |
| 38 | require.NoError(t, err) |
| 39 | |
| 40 | return string(b) |
| 41 | } |
| 42 | |
| 43 | func TestUpdateAddsNewCredentials(t *testing.T) { |
| 44 | // Given we have an isolated git config and we're using the built in store credential helper |
no test coverage detected