forked from DrmagicE/gmqtt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
elem_mock.go
60 lines (50 loc) · 1.75 KB
/
elem_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
// Code generated by MockGen. DO NOT EDIT.
// Source: persistence/queue/elem.go
// Package queue is a generated GoMock package.
package queue
import (
gomock "github.com/golang/mock/gomock"
packets "github.com/twxstar/gmqtt/pkg/packets"
reflect "reflect"
)
// MockMessageWithID is a mock of MessageWithID interface
type MockMessageWithID struct {
ctrl *gomock.Controller
recorder *MockMessageWithIDMockRecorder
}
// MockMessageWithIDMockRecorder is the mock recorder for MockMessageWithID
type MockMessageWithIDMockRecorder struct {
mock *MockMessageWithID
}
// NewMockMessageWithID creates a new mock instance
func NewMockMessageWithID(ctrl *gomock.Controller) *MockMessageWithID {
mock := &MockMessageWithID{ctrl: ctrl}
mock.recorder = &MockMessageWithIDMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockMessageWithID) EXPECT() *MockMessageWithIDMockRecorder {
return m.recorder
}
// ID mocks base method
func (m *MockMessageWithID) ID() packets.PacketID {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ID")
ret0, _ := ret[0].(packets.PacketID)
return ret0
}
// ID indicates an expected call of ID
func (mr *MockMessageWithIDMockRecorder) ID() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockMessageWithID)(nil).ID))
}
// SetID mocks base method
func (m *MockMessageWithID) SetID(id packets.PacketID) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetID", id)
}
// SetID indicates an expected call of SetID
func (mr *MockMessageWithIDMockRecorder) SetID(id interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetID", reflect.TypeOf((*MockMessageWithID)(nil).SetID), id)
}