(tb testing.TB, repo *git.Repository)
| 143 | } |
| 144 | |
| 145 | func 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 | |
| 157 | func (s *smartHTTPRepoServer) Close() { |
| 158 | s.server.Close() |
no outgoing calls
no test coverage detected