-
Notifications
You must be signed in to change notification settings - Fork 14
/
audit_log.go
70 lines (58 loc) · 2.55 KB
/
audit_log.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: audit_log.go
// Package mock is a generated GoMock package.
package mock
import (
context "context"
reflect "reflect"
gomock "go.uber.org/mock/gomock"
domain "github.com/bucketeer-io/bucketeer/pkg/auditlog/domain"
mysql "github.com/bucketeer-io/bucketeer/pkg/storage/v2/mysql"
auditlog "github.com/bucketeer-io/bucketeer/proto/auditlog"
)
// MockAuditLogStorage is a mock of AuditLogStorage interface.
type MockAuditLogStorage struct {
ctrl *gomock.Controller
recorder *MockAuditLogStorageMockRecorder
}
// MockAuditLogStorageMockRecorder is the mock recorder for MockAuditLogStorage.
type MockAuditLogStorageMockRecorder struct {
mock *MockAuditLogStorage
}
// NewMockAuditLogStorage creates a new mock instance.
func NewMockAuditLogStorage(ctrl *gomock.Controller) *MockAuditLogStorage {
mock := &MockAuditLogStorage{ctrl: ctrl}
mock.recorder = &MockAuditLogStorageMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockAuditLogStorage) EXPECT() *MockAuditLogStorageMockRecorder {
return m.recorder
}
// CreateAuditLogs mocks base method.
func (m *MockAuditLogStorage) CreateAuditLogs(ctx context.Context, auditLogs []*domain.AuditLog) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateAuditLogs", ctx, auditLogs)
ret0, _ := ret[0].(error)
return ret0
}
// CreateAuditLogs indicates an expected call of CreateAuditLogs.
func (mr *MockAuditLogStorageMockRecorder) CreateAuditLogs(ctx, auditLogs interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAuditLogs", reflect.TypeOf((*MockAuditLogStorage)(nil).CreateAuditLogs), ctx, auditLogs)
}
// ListAuditLogs mocks base method.
func (m *MockAuditLogStorage) ListAuditLogs(ctx context.Context, whereParts []mysql.WherePart, orders []*mysql.Order, limit, offset int) ([]*auditlog.AuditLog, int, int64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListAuditLogs", ctx, whereParts, orders, limit, offset)
ret0, _ := ret[0].([]*auditlog.AuditLog)
ret1, _ := ret[1].(int)
ret2, _ := ret[2].(int64)
ret3, _ := ret[3].(error)
return ret0, ret1, ret2, ret3
}
// ListAuditLogs indicates an expected call of ListAuditLogs.
func (mr *MockAuditLogStorageMockRecorder) ListAuditLogs(ctx, whereParts, orders, limit, offset interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAuditLogs", reflect.TypeOf((*MockAuditLogStorage)(nil).ListAuditLogs), ctx, whereParts, orders, limit, offset)
}