forked from keybase/kbfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_codec.go
67 lines (53 loc) · 1.8 KB
/
mock_codec.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
// Automatically generated by MockGen. DO NOT EDIT!
// Source: codec.go
package kbfscodec
import (
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// Mock of Codec interface
type MockCodec struct {
ctrl *gomock.Controller
recorder *_MockCodecRecorder
}
// Recorder for MockCodec (not exported)
type _MockCodecRecorder struct {
mock *MockCodec
}
func NewMockCodec(ctrl *gomock.Controller) *MockCodec {
mock := &MockCodec{ctrl: ctrl}
mock.recorder = &_MockCodecRecorder{mock}
return mock
}
func (_m *MockCodec) EXPECT() *_MockCodecRecorder {
return _m.recorder
}
func (_m *MockCodec) Decode(buf []byte, obj interface{}) error {
ret := _m.ctrl.Call(_m, "Decode", buf, obj)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockCodecRecorder) Decode(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Decode", arg0, arg1)
}
func (_m *MockCodec) Encode(obj interface{}) ([]byte, error) {
ret := _m.ctrl.Call(_m, "Encode", obj)
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockCodecRecorder) Encode(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Encode", arg0)
}
func (_m *MockCodec) RegisterType(rt reflect.Type, code ExtCode) {
_m.ctrl.Call(_m, "RegisterType", rt, code)
}
func (_mr *_MockCodecRecorder) RegisterType(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "RegisterType", arg0, arg1)
}
func (_m *MockCodec) RegisterIfaceSliceType(rt reflect.Type, code ExtCode, typer func(interface{}) reflect.Value) {
_m.ctrl.Call(_m, "RegisterIfaceSliceType", rt, code, typer)
}
func (_mr *_MockCodecRecorder) RegisterIfaceSliceType(arg0, arg1, arg2 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "RegisterIfaceSliceType", arg0, arg1, arg2)
}