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

Function newSmartHTTPRepoServer

cmd/git-sync/main_test.go:763–774  ·  view source on GitHub ↗
(t *testing.T, repo *git.Repository)

Source from the content-addressed store, hash-verified

761}
762
763func newSmartHTTPRepoServer(t *testing.T, repo *git.Repository) *smartHTTPRepoServer {
764 t.Helper()
765
766 s := &smartHTTPRepoServer{
767 t: t,
768 repo: repo,
769 repoPath: "/repo.git",
770 thinCapable: true,
771 }
772 s.server = httptest.NewServer(http.HandlerFunc(s.handle))
773 return s
774}
775
776func (s *smartHTTPRepoServer) Close() {
777 s.server.Close()

Calls

no outgoing calls

Tested by

no test coverage detected