(t *testing.T)
| 311 | } |
| 312 | |
| 313 | func initRepo(t *testing.T) string { |
| 314 | t.Helper() |
| 315 | dir := t.TempDir() |
| 316 | out, err := exec.Command("git", "-C", dir, "init", "--quiet").CombinedOutput() |
| 317 | require.NoErrorf(t, err, "git init: %s", out) |
| 318 | return dir |
| 319 | } |
| 320 | |
| 321 | func writeLooseObject(t *testing.T, repo, objType string, content []byte) plumbing.Hash { |
| 322 | t.Helper() |
no test coverage detected
searching dependent graphs…