-
Notifications
You must be signed in to change notification settings - Fork 89
/
packer_mock.go
65 lines (54 loc) · 1.79 KB
/
packer_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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/DarthPestilane/easytcp (interfaces: Packer)
// Package easytcp is a generated GoMock package.
package easytcp
import (
io "io"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockPacker is a mock of Packer interface.
type MockPacker struct {
ctrl *gomock.Controller
recorder *MockPackerMockRecorder
}
// MockPackerMockRecorder is the mock recorder for MockPacker.
type MockPackerMockRecorder struct {
mock *MockPacker
}
// NewMockPacker creates a new mock instance.
func NewMockPacker(ctrl *gomock.Controller) *MockPacker {
mock := &MockPacker{ctrl: ctrl}
mock.recorder = &MockPackerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockPacker) EXPECT() *MockPackerMockRecorder {
return m.recorder
}
// Pack mocks base method.
func (m *MockPacker) Pack(arg0 *Message) ([]byte, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Pack", arg0)
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Pack indicates an expected call of Pack.
func (mr *MockPackerMockRecorder) Pack(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Pack", reflect.TypeOf((*MockPacker)(nil).Pack), arg0)
}
// Unpack mocks base method.
func (m *MockPacker) Unpack(arg0 io.Reader) (*Message, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Unpack", arg0)
ret0, _ := ret[0].(*Message)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Unpack indicates an expected call of Unpack.
func (mr *MockPackerMockRecorder) Unpack(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unpack", reflect.TypeOf((*MockPacker)(nil).Unpack), arg0)
}