-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmock_stores.go
More file actions
56 lines (47 loc) · 1.66 KB
/
Copy pathmock_stores.go
File metadata and controls
56 lines (47 loc) · 1.66 KB
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
// Code generated by MockGen. DO NOT EDIT.
// Source: stores.go
//
// Generated by this command:
//
// mockgen -source=stores.go -destination=mock_stores.go -package=sql -self_package=github.com/uber/submitqueue/extensions/queue/sql
//
// Package sql is a generated GoMock package.
package sql
import (
context "context"
reflect "reflect"
queue "github.com/uber/submitqueue/entities/queue"
gomock "go.uber.org/mock/gomock"
)
// MockMessageStore is a mock of MessageStore interface.
type MockMessageStore struct {
ctrl *gomock.Controller
recorder *MockMessageStoreMockRecorder
isgomock struct{}
}
// MockMessageStoreMockRecorder is the mock recorder for MockMessageStore.
type MockMessageStoreMockRecorder struct {
mock *MockMessageStore
}
// NewMockMessageStore creates a new mock instance.
func NewMockMessageStore(ctrl *gomock.Controller) *MockMessageStore {
mock := &MockMessageStore{ctrl: ctrl}
mock.recorder = &MockMessageStoreMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMessageStore) EXPECT() *MockMessageStoreMockRecorder {
return m.recorder
}
// Insert mocks base method.
func (m *MockMessageStore) Insert(ctx context.Context, topic string, messages []queue.Message) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Insert", ctx, topic, messages)
ret0, _ := ret[0].(error)
return ret0
}
// Insert indicates an expected call of Insert.
func (mr *MockMessageStoreMockRecorder) Insert(ctx, topic, messages any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockMessageStore)(nil).Insert), ctx, topic, messages)
}