-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodec_mock.go
More file actions
56 lines (47 loc) · 1.43 KB
/
codec_mock.go
File metadata and controls
56 lines (47 loc) · 1.43 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: codec.go
//
// Generated by this command:
//
// mockgen -destination=codec_mock.go -package=codec -source=codec.go
//
// Package codec is a generated GoMock package.
package codec
import (
context "context"
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// MockCodec is a mock of Codec interface.
type MockCodec struct {
ctrl *gomock.Controller
recorder *MockCodecMockRecorder
isgomock struct{}
}
// MockCodecMockRecorder is the mock recorder for MockCodec.
type MockCodecMockRecorder struct {
mock *MockCodec
}
// NewMockCodec creates a new mock instance.
func NewMockCodec(ctrl *gomock.Controller) *MockCodec {
mock := &MockCodec{ctrl: ctrl}
mock.recorder = &MockCodecMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockCodec) EXPECT() *MockCodecMockRecorder {
return m.recorder
}
// Encode mocks base method.
func (m *MockCodec) Encode(ctx context.Context, req EncodeRequest) (EncodeResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Encode", ctx, req)
ret0, _ := ret[0].(EncodeResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Encode indicates an expected call of Encode.
func (mr *MockCodecMockRecorder) Encode(ctx, req any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Encode", reflect.TypeOf((*MockCodec)(nil).Encode), ctx, req)
}