(t *testing.T, repo *git.Repository)
| 761 | } |
| 762 | |
| 763 | func 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 | |
| 776 | func (s *smartHTTPRepoServer) Close() { |
| 777 | s.server.Close() |
no outgoing calls
no test coverage detected