(t *testing.T, repoDir string, args ...string)
| 247 | } |
| 248 | |
| 249 | func runGit(t *testing.T, repoDir string, args ...string) string { |
| 250 | t.Helper() |
| 251 | client := &git.Client{RepoDir: repoDir} |
| 252 | cmd, err := client.Command(stdctx.Background(), args...) |
| 253 | require.NoError(t, err) |
| 254 | output, err := cmd.Output() |
| 255 | require.NoErrorf(t, err, "git %s failed", strings.Join(args, " ")) |
| 256 | return strings.TrimSpace(string(output)) |
| 257 | } |
| 258 | |
| 259 | func Test_SyncRun(t *testing.T) { |
| 260 | tests := []struct { |
no test coverage detected