-
Notifications
You must be signed in to change notification settings - Fork 3.5k
/
passwords_service.go
78 lines (65 loc) · 2.91 KB
/
passwords_service.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/influxdata/influxdb/v2 (interfaces: PasswordsService)
// Package mock is a generated GoMock package.
package mock
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
"github.com/influxdata/influxdb/v2/kit/platform"
)
// MockPasswordsService is a mock of PasswordsService interface
type MockPasswordsService struct {
ctrl *gomock.Controller
recorder *MockPasswordsServiceMockRecorder
}
// MockPasswordsServiceMockRecorder is the mock recorder for MockPasswordsService
type MockPasswordsServiceMockRecorder struct {
mock *MockPasswordsService
}
// NewMockPasswordsService creates a new mock instance
func NewMockPasswordsService(ctrl *gomock.Controller) *MockPasswordsService {
mock := &MockPasswordsService{ctrl: ctrl}
mock.recorder = &MockPasswordsServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockPasswordsService) EXPECT() *MockPasswordsServiceMockRecorder {
return m.recorder
}
// CompareAndSetPassword mocks base method
func (m *MockPasswordsService) CompareAndSetPassword(arg0 context.Context, arg1 platform.ID, arg2, arg3 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CompareAndSetPassword", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(error)
return ret0
}
// CompareAndSetPassword indicates an expected call of CompareAndSetPassword
func (mr *MockPasswordsServiceMockRecorder) CompareAndSetPassword(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CompareAndSetPassword", reflect.TypeOf((*MockPasswordsService)(nil).CompareAndSetPassword), arg0, arg1, arg2, arg3)
}
// ComparePassword mocks base method
func (m *MockPasswordsService) ComparePassword(arg0 context.Context, arg1 platform.ID, arg2 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ComparePassword", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// ComparePassword indicates an expected call of ComparePassword
func (mr *MockPasswordsServiceMockRecorder) ComparePassword(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ComparePassword", reflect.TypeOf((*MockPasswordsService)(nil).ComparePassword), arg0, arg1, arg2)
}
// SetPassword mocks base method
func (m *MockPasswordsService) SetPassword(arg0 context.Context, arg1 platform.ID, arg2 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetPassword", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// SetPassword indicates an expected call of SetPassword
func (mr *MockPasswordsServiceMockRecorder) SetPassword(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPassword", reflect.TypeOf((*MockPasswordsService)(nil).SetPassword), arg0, arg1, arg2)
}