/
mock_auth.go
70 lines (59 loc) · 2.23 KB
/
mock_auth.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/duc-cnzj/mars/v4/internal/contracts (interfaces: AuthInterface)
//
// Generated by this command:
//
// mockgen -destination ../mock/mock_auth.go -package mock github.com/duc-cnzj/mars/v4/internal/contracts AuthInterface
//
// Package mock is a generated GoMock package.
package mock
import (
reflect "reflect"
contracts "github.com/duc-cnzj/mars/v4/internal/contracts"
gomock "go.uber.org/mock/gomock"
)
// MockAuthInterface is a mock of AuthInterface interface.
type MockAuthInterface struct {
ctrl *gomock.Controller
recorder *MockAuthInterfaceMockRecorder
}
// MockAuthInterfaceMockRecorder is the mock recorder for MockAuthInterface.
type MockAuthInterfaceMockRecorder struct {
mock *MockAuthInterface
}
// NewMockAuthInterface creates a new mock instance.
func NewMockAuthInterface(ctrl *gomock.Controller) *MockAuthInterface {
mock := &MockAuthInterface{ctrl: ctrl}
mock.recorder = &MockAuthInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockAuthInterface) EXPECT() *MockAuthInterfaceMockRecorder {
return m.recorder
}
// Sign mocks base method.
func (m *MockAuthInterface) Sign(arg0 contracts.UserInfo) (*contracts.SignData, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Sign", arg0)
ret0, _ := ret[0].(*contracts.SignData)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Sign indicates an expected call of Sign.
func (mr *MockAuthInterfaceMockRecorder) Sign(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sign", reflect.TypeOf((*MockAuthInterface)(nil).Sign), arg0)
}
// VerifyToken mocks base method.
func (m *MockAuthInterface) VerifyToken(arg0 string) (*contracts.JwtClaims, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "VerifyToken", arg0)
ret0, _ := ret[0].(*contracts.JwtClaims)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// VerifyToken indicates an expected call of VerifyToken.
func (mr *MockAuthInterfaceMockRecorder) VerifyToken(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyToken", reflect.TypeOf((*MockAuthInterface)(nil).VerifyToken), arg0)
}