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

Function newSmartHTTPRepoServer

client_test.go:145–155  ·  view source on GitHub ↗
(tb testing.TB, repo *git.Repository)

Source from the content-addressed store, hash-verified

143}
144
145func newSmartHTTPRepoServer(tb testing.TB, repo *git.Repository) *smartHTTPRepoServer {
146 tb.Helper()
147
148 s := &smartHTTPRepoServer{
149 tb: tb,
150 repo: repo,
151 repoPath: "/repo.git",
152 }
153 s.server = httptest.NewServer(http.HandlerFunc(s.handle))
154 return s
155}
156
157func (s *smartHTTPRepoServer) Close() {
158 s.server.Close()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected