(t *testing.T)
| 688 | } |
| 689 | |
| 690 | func newSourceRepo(t *testing.T) (*git.Repository, billy.Filesystem) { |
| 691 | t.Helper() |
| 692 | |
| 693 | fs := memfs.New() |
| 694 | repo, err := git.Init(memory.NewStorage(), git.WithWorkTree(fs)) |
| 695 | if err != nil { |
| 696 | t.Fatalf("init source repo: %v", err) |
| 697 | } |
| 698 | |
| 699 | return repo, fs |
| 700 | } |
| 701 | |
| 702 | func makeCommits(t *testing.T, repo *git.Repository, fs billy.Filesystem, count int) { |
| 703 | t.Helper() |
no outgoing calls
no test coverage detected