diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2015-11-05 19:08:20 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2015-11-05 20:55:46 +0100 |
commit | 6be0bc1233b1a31e749354f1d54104b49d5bf19b (patch) | |
tree | a9fd259944a42322050247ed6b5393150f2c4cb8 /common_test.go | |
parent | a80d56b21142096f458758405736f3d567c175f5 (diff) | |
download | go-git-6be0bc1233b1a31e749354f1d54104b49d5bf19b.tar.gz |
clients: new AuthMethod and ConnectWithAuth
Diffstat (limited to 'common_test.go')
-rw-r--r-- | common_test.go | 9 |
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") |