aboutsummaryrefslogtreecommitdiffstats
path: root/common_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'common_test.go')
-rw-r--r--common_test.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/common_test.go b/common_test.go
index 1716813..03f027c 100644
--- a/common_test.go
+++ b/common_test.go
@@ -12,12 +12,19 @@ import (
func Test(t *testing.T) { TestingT(t) }
-type MockGitUploadPackService struct{}
+type MockGitUploadPackService struct {
+ Auth common.AuthMethod
+}
func (s *MockGitUploadPackService) Connect(url common.Endpoint) error {
return nil
}
+func (s *MockGitUploadPackService) ConnectWithAuth(url common.Endpoint, auth common.AuthMethod) error {
+ s.Auth = auth
+ return nil
+}
+
func (s *MockGitUploadPackService) Info() (*common.GitUploadPackInfo, error) {
hash := core.NewHash("6ecf0ef2c2dffb796033e5a02219af86ec6584e5")