MCPcopy Create free account
hub / github.com/entireio/git-sync / newSourceRepo

Function newSourceRepo

cmd/git-sync/main_test.go:690–700  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

688}
689
690func 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
702func makeCommits(t *testing.T, repo *git.Repository, fs billy.Filesystem, count int) {
703 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected