-
Notifications
You must be signed in to change notification settings - Fork 2
/
service_mock.go
71 lines (60 loc) · 2.18 KB
/
service_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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Code generated by MockGen. DO NOT EDIT.
// Source: ./service.go
//
// Generated by this command:
//
// mockgen -source=./service.go -destination=./mock/service_mock.go
//
// Package mock_user is a generated GoMock package.
package mock_user
import (
context "context"
reflect "reflect"
domain "github.com/brunodmartins/church-members-api/internal/constants/domain"
wrapper "github.com/brunodmartins/church-members-api/platform/aws/wrapper"
gomock "go.uber.org/mock/gomock"
)
// MockService is a mock of Service interface.
type MockService struct {
ctrl *gomock.Controller
recorder *MockServiceMockRecorder
}
// MockServiceMockRecorder is the mock recorder for MockService.
type MockServiceMockRecorder struct {
mock *MockService
}
// NewMockService creates a new mock instance.
func NewMockService(ctrl *gomock.Controller) *MockService {
mock := &MockService{ctrl: ctrl}
mock.recorder = &MockServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockService) EXPECT() *MockServiceMockRecorder {
return m.recorder
}
// SaveUser mocks base method.
func (m *MockService) SaveUser(ctx context.Context, user *domain.User) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SaveUser", ctx, user)
ret0, _ := ret[0].(error)
return ret0
}
// SaveUser indicates an expected call of SaveUser.
func (mr *MockServiceMockRecorder) SaveUser(ctx, user any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveUser", reflect.TypeOf((*MockService)(nil).SaveUser), ctx, user)
}
// SearchUser mocks base method.
func (m *MockService) SearchUser(ctx context.Context, specification wrapper.QuerySpecification) ([]*domain.User, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SearchUser", ctx, specification)
ret0, _ := ret[0].([]*domain.User)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// SearchUser indicates an expected call of SearchUser.
func (mr *MockServiceMockRecorder) SearchUser(ctx, specification any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchUser", reflect.TypeOf((*MockService)(nil).SearchUser), ctx, specification)
}