From 6be0bc1233b1a31e749354f1d54104b49d5bf19b Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Thu, 5 Nov 2015 19:08:20 +0100 Subject: clients: new AuthMethod and ConnectWithAuth --- common_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'common_test.go') 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") -- cgit