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