bbgo_origin/pkg/exchange/bybit/mocks/stream.go

83 lines
3.0 KiB
Go
Raw Normal View History

// Code generated by MockGen. DO NOT EDIT.
2023-09-26 08:05:52 +00:00
// Source: github.com/c9s/bbgo/pkg/exchange/bybit (interfaces: StreamDataProvider)
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
bybitapi "github.com/c9s/bbgo/pkg/exchange/bybit/bybitapi"
types "github.com/c9s/bbgo/pkg/types"
gomock "go.uber.org/mock/gomock"
)
2023-09-26 08:05:52 +00:00
// MockStreamDataProvider is a mock of StreamDataProvider interface.
type MockStreamDataProvider struct {
ctrl *gomock.Controller
2023-09-26 08:05:52 +00:00
recorder *MockStreamDataProviderMockRecorder
}
2023-09-26 08:05:52 +00:00
// MockStreamDataProviderMockRecorder is the mock recorder for MockStreamDataProvider.
type MockStreamDataProviderMockRecorder struct {
mock *MockStreamDataProvider
}
2023-09-26 08:05:52 +00:00
// NewMockStreamDataProvider creates a new mock instance.
func NewMockStreamDataProvider(ctrl *gomock.Controller) *MockStreamDataProvider {
mock := &MockStreamDataProvider{ctrl: ctrl}
mock.recorder = &MockStreamDataProviderMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
2023-09-26 08:05:52 +00:00
func (m *MockStreamDataProvider) EXPECT() *MockStreamDataProviderMockRecorder {
return m.recorder
}
2023-08-10 07:13:09 +00:00
// GetAllFeeRates mocks base method.
2023-09-26 08:05:52 +00:00
func (m *MockStreamDataProvider) GetAllFeeRates(arg0 context.Context) (bybitapi.FeeRates, error) {
m.ctrl.T.Helper()
2023-08-10 07:13:09 +00:00
ret := m.ctrl.Call(m, "GetAllFeeRates", arg0)
ret0, _ := ret[0].(bybitapi.FeeRates)
ret1, _ := ret[1].(error)
return ret0, ret1
}
2023-08-10 07:13:09 +00:00
// GetAllFeeRates indicates an expected call of GetAllFeeRates.
2023-09-26 08:05:52 +00:00
func (mr *MockStreamDataProviderMockRecorder) GetAllFeeRates(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
2023-09-26 08:05:52 +00:00
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllFeeRates", reflect.TypeOf((*MockStreamDataProvider)(nil).GetAllFeeRates), arg0)
}
// QueryAccountBalances mocks base method.
func (m *MockStreamDataProvider) QueryAccountBalances(arg0 context.Context) (types.BalanceMap, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "QueryAccountBalances", arg0)
ret0, _ := ret[0].(types.BalanceMap)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// QueryAccountBalances indicates an expected call of QueryAccountBalances.
func (mr *MockStreamDataProviderMockRecorder) QueryAccountBalances(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryAccountBalances", reflect.TypeOf((*MockStreamDataProvider)(nil).QueryAccountBalances), arg0)
}
// QueryMarkets mocks base method.
2023-09-26 08:05:52 +00:00
func (m *MockStreamDataProvider) QueryMarkets(arg0 context.Context) (types.MarketMap, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "QueryMarkets", arg0)
ret0, _ := ret[0].(types.MarketMap)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// QueryMarkets indicates an expected call of QueryMarkets.
2023-09-26 08:05:52 +00:00
func (mr *MockStreamDataProviderMockRecorder) QueryMarkets(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
2023-09-26 08:05:52 +00:00
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryMarkets", reflect.TypeOf((*MockStreamDataProvider)(nil).QueryMarkets), arg0)
}