forked from stormcat24/protodep
/
auth_mock.go
50 lines (40 loc) · 1.3 KB
/
auth_mock.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Automatically generated by MockGen. DO NOT EDIT!
// Source: helper/auth.go
package helper
import (
gomock "github.com/golang/mock/gomock"
transport "gopkg.in/src-d/go-git.v4/plumbing/transport"
)
// Mock of AuthProvider interface
type MockAuthProvider struct {
ctrl *gomock.Controller
recorder *_MockAuthProviderRecorder
}
// Recorder for MockAuthProvider (not exported)
type _MockAuthProviderRecorder struct {
mock *MockAuthProvider
}
func NewMockAuthProvider(ctrl *gomock.Controller) *MockAuthProvider {
mock := &MockAuthProvider{ctrl: ctrl}
mock.recorder = &_MockAuthProviderRecorder{mock}
return mock
}
func (_m *MockAuthProvider) EXPECT() *_MockAuthProviderRecorder {
return _m.recorder
}
func (_m *MockAuthProvider) GetRepositoryURL(reponame string) string {
ret := _m.ctrl.Call(_m, "GetRepositoryURL", reponame)
ret0, _ := ret[0].(string)
return ret0
}
func (_mr *_MockAuthProviderRecorder) GetRepositoryURL(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "GetRepositoryURL", arg0)
}
func (_m *MockAuthProvider) AuthMethod() transport.AuthMethod {
ret := _m.ctrl.Call(_m, "AuthMethod")
ret0, _ := ret[0].(transport.AuthMethod)
return ret0
}
func (_mr *_MockAuthProviderRecorder) AuthMethod() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "AuthMethod")
}