-
Notifications
You must be signed in to change notification settings - Fork 22
/
orderbook_mock.go
78 lines (65 loc) · 2.58 KB
/
orderbook_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
66
67
68
69
70
71
72
73
74
75
76
77
78
// Code generated by MockGen. DO NOT EDIT.
// Source: code.vegaprotocol.io/vega/core/liquidity (interfaces: OrderBook)
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
types "code.vegaprotocol.io/vega/core/types"
gomock "github.com/golang/mock/gomock"
)
// MockOrderBook is a mock of OrderBook interface.
type MockOrderBook struct {
ctrl *gomock.Controller
recorder *MockOrderBookMockRecorder
}
// MockOrderBookMockRecorder is the mock recorder for MockOrderBook.
type MockOrderBookMockRecorder struct {
mock *MockOrderBook
}
// NewMockOrderBook creates a new mock instance.
func NewMockOrderBook(ctrl *gomock.Controller) *MockOrderBook {
mock := &MockOrderBook{ctrl: ctrl}
mock.recorder = &MockOrderBookMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockOrderBook) EXPECT() *MockOrderBookMockRecorder {
return m.recorder
}
// GetLiquidityOrders mocks base method.
func (m *MockOrderBook) GetLiquidityOrders(arg0 string) []*types.Order {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetLiquidityOrders", arg0)
ret0, _ := ret[0].([]*types.Order)
return ret0
}
// GetLiquidityOrders indicates an expected call of GetLiquidityOrders.
func (mr *MockOrderBookMockRecorder) GetLiquidityOrders(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLiquidityOrders", reflect.TypeOf((*MockOrderBook)(nil).GetLiquidityOrders), arg0)
}
// GetOrderByID mocks base method.
func (m *MockOrderBook) GetOrderByID(arg0 string) (*types.Order, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetOrderByID", arg0)
ret0, _ := ret[0].(*types.Order)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetOrderByID indicates an expected call of GetOrderByID.
func (mr *MockOrderBookMockRecorder) GetOrderByID(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrderByID", reflect.TypeOf((*MockOrderBook)(nil).GetOrderByID), arg0)
}
// GetOrdersPerParty mocks base method.
func (m *MockOrderBook) GetOrdersPerParty(arg0 string) []*types.Order {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetOrdersPerParty", arg0)
ret0, _ := ret[0].([]*types.Order)
return ret0
}
// GetOrdersPerParty indicates an expected call of GetOrdersPerParty.
func (mr *MockOrderBookMockRecorder) GetOrdersPerParty(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrdersPerParty", reflect.TypeOf((*MockOrderBook)(nil).GetOrdersPerParty), arg0)
}