This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
channel_keeper.go
97 lines (82 loc) · 3.79 KB
/
channel_keeper.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/strangelove-ventures/packet-forward-middleware/v5/router/types (interfaces: ChannelKeeper)
// Package mock is a generated GoMock package.
package mock
import (
reflect "reflect"
types "github.com/cosmos/cosmos-sdk/types"
types0 "github.com/cosmos/cosmos-sdk/x/capability/types"
types1 "github.com/cosmos/ibc-go/v5/modules/core/04-channel/types"
gomock "github.com/golang/mock/gomock"
)
// MockChannelKeeper is a mock of ChannelKeeper interface.
type MockChannelKeeper struct {
ctrl *gomock.Controller
recorder *MockChannelKeeperMockRecorder
}
// MockChannelKeeperMockRecorder is the mock recorder for MockChannelKeeper.
type MockChannelKeeperMockRecorder struct {
mock *MockChannelKeeper
}
// NewMockChannelKeeper creates a new mock instance.
func NewMockChannelKeeper(ctrl *gomock.Controller) *MockChannelKeeper {
mock := &MockChannelKeeper{ctrl: ctrl}
mock.recorder = &MockChannelKeeperMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockChannelKeeper) EXPECT() *MockChannelKeeperMockRecorder {
return m.recorder
}
// GetChannel mocks base method.
func (m *MockChannelKeeper) GetChannel(arg0 types.Context, arg1, arg2 string) (types1.Channel, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetChannel", arg0, arg1, arg2)
ret0, _ := ret[0].(types1.Channel)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// GetChannel indicates an expected call of GetChannel.
func (mr *MockChannelKeeperMockRecorder) GetChannel(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChannel", reflect.TypeOf((*MockChannelKeeper)(nil).GetChannel), arg0, arg1, arg2)
}
// GetNextSequenceSend mocks base method.
func (m *MockChannelKeeper) GetNextSequenceSend(arg0 types.Context, arg1, arg2 string) (uint64, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetNextSequenceSend", arg0, arg1, arg2)
ret0, _ := ret[0].(uint64)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// GetNextSequenceSend indicates an expected call of GetNextSequenceSend.
func (mr *MockChannelKeeperMockRecorder) GetNextSequenceSend(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNextSequenceSend", reflect.TypeOf((*MockChannelKeeper)(nil).GetNextSequenceSend), arg0, arg1, arg2)
}
// GetPacketCommitment mocks base method.
func (m *MockChannelKeeper) GetPacketCommitment(arg0 types.Context, arg1, arg2 string, arg3 uint64) []byte {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetPacketCommitment", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].([]byte)
return ret0
}
// GetPacketCommitment indicates an expected call of GetPacketCommitment.
func (mr *MockChannelKeeperMockRecorder) GetPacketCommitment(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPacketCommitment", reflect.TypeOf((*MockChannelKeeper)(nil).GetPacketCommitment), arg0, arg1, arg2, arg3)
}
// LookupModuleByChannel mocks base method.
func (m *MockChannelKeeper) LookupModuleByChannel(arg0 types.Context, arg1, arg2 string) (string, *types0.Capability, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LookupModuleByChannel", arg0, arg1, arg2)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(*types0.Capability)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// LookupModuleByChannel indicates an expected call of LookupModuleByChannel.
func (mr *MockChannelKeeperMockRecorder) LookupModuleByChannel(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LookupModuleByChannel", reflect.TypeOf((*MockChannelKeeper)(nil).LookupModuleByChannel), arg0, arg1, arg2)
}