/
auth_mock_gen.go
108 lines (91 loc) · 3.33 KB
/
auth_mock_gen.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/stateful/runme/internal/auth (interfaces: Authorizer)
// Package auth is a generated GoMock package.
package auth
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockAuthorizer is a mock of Authorizer interface.
type MockAuthorizer struct {
ctrl *gomock.Controller
recorder *MockAuthorizerMockRecorder
}
// MockAuthorizerMockRecorder is the mock recorder for MockAuthorizer.
type MockAuthorizerMockRecorder struct {
mock *MockAuthorizer
}
// NewMockAuthorizer creates a new mock instance.
func NewMockAuthorizer(ctrl *gomock.Controller) *MockAuthorizer {
mock := &MockAuthorizer{ctrl: ctrl}
mock.recorder = &MockAuthorizerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockAuthorizer) EXPECT() *MockAuthorizerMockRecorder {
return m.recorder
}
// GetFreshToken mocks base method.
func (m *MockAuthorizer) GetFreshToken(arg0 context.Context) (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetFreshToken", arg0)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetFreshToken indicates an expected call of GetFreshToken.
func (mr *MockAuthorizerMockRecorder) GetFreshToken(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFreshToken", reflect.TypeOf((*MockAuthorizer)(nil).GetFreshToken), arg0)
}
// GetToken mocks base method.
func (m *MockAuthorizer) GetToken(arg0 context.Context) (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetToken", arg0)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetToken indicates an expected call of GetToken.
func (mr *MockAuthorizerMockRecorder) GetToken(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetToken", reflect.TypeOf((*MockAuthorizer)(nil).GetToken), arg0)
}
// GetTokenPath mocks base method.
func (m *MockAuthorizer) GetTokenPath() (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTokenPath")
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetTokenPath indicates an expected call of GetTokenPath.
func (mr *MockAuthorizerMockRecorder) GetTokenPath() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTokenPath", reflect.TypeOf((*MockAuthorizer)(nil).GetTokenPath))
}
// Login mocks base method.
func (m *MockAuthorizer) Login(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Login", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Login indicates an expected call of Login.
func (mr *MockAuthorizerMockRecorder) Login(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Login", reflect.TypeOf((*MockAuthorizer)(nil).Login), arg0)
}
// Logout mocks base method.
func (m *MockAuthorizer) Logout() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Logout")
ret0, _ := ret[0].(error)
return ret0
}
// Logout indicates an expected call of Logout.
func (mr *MockAuthorizerMockRecorder) Logout() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Logout", reflect.TypeOf((*MockAuthorizer)(nil).Logout))
}