Documentation ¶
Overview ¶
Package mock_coingecko is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) FetchCoinList(ctx context.Context, includePlatform bool) (*coingecko.CoinListResponse, error)
- func (m *MockClient) FetchCoinMarkets(ctx context.Context, vsCurrency string, limit int) (*coingecko.CoinMarketResponse, time.Time, error)
- func (m *MockClient) FetchMarketChart(ctx context.Context, id, vsCurrency string, days float32, ...) (*coingecko.MarketChartResponse, time.Time, error)
- func (m *MockClient) FetchSimplePrice(ctx context.Context, ids, vsCurrencies string, include24hrChange bool) (*coingecko.SimplePriceResponse, error)
- func (m *MockClient) FetchSupportedVsCurrencies(ctx context.Context) (*coingecko.SupportedVsCurrenciesResponse, error)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) FetchCoinList(ctx, includePlatform interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) FetchCoinMarkets(ctx, vsCurrency, limit interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) FetchMarketChart(ctx, id, vsCurrency, days, cacheDurationSeconds interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) FetchSimplePrice(ctx, ids, vsCurrencies, include24hrChange interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) FetchSupportedVsCurrencies(ctx interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) FetchCoinList ¶
func (m *MockClient) FetchCoinList(ctx context.Context, includePlatform bool) (*coingecko.CoinListResponse, error)
FetchCoinList mocks base method.
func (*MockClient) FetchCoinMarkets ¶
func (m *MockClient) FetchCoinMarkets(ctx context.Context, vsCurrency string, limit int) (*coingecko.CoinMarketResponse, time.Time, error)
FetchCoinMarkets mocks base method.
func (*MockClient) FetchMarketChart ¶
func (m *MockClient) FetchMarketChart(ctx context.Context, id, vsCurrency string, days float32, cacheDurationSeconds int) (*coingecko.MarketChartResponse, time.Time, error)
FetchMarketChart mocks base method.
func (*MockClient) FetchSimplePrice ¶
func (m *MockClient) FetchSimplePrice(ctx context.Context, ids, vsCurrencies string, include24hrChange bool) (*coingecko.SimplePriceResponse, error)
FetchSimplePrice mocks base method.
func (*MockClient) FetchSupportedVsCurrencies ¶
func (m *MockClient) FetchSupportedVsCurrencies(ctx context.Context) (*coingecko.SupportedVsCurrenciesResponse, error)
FetchSupportedVsCurrencies mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) FetchCoinList ¶
func (mr *MockClientMockRecorder) FetchCoinList(ctx, includePlatform interface{}) *gomock.Call
FetchCoinList indicates an expected call of FetchCoinList.
func (*MockClientMockRecorder) FetchCoinMarkets ¶
func (mr *MockClientMockRecorder) FetchCoinMarkets(ctx, vsCurrency, limit interface{}) *gomock.Call
FetchCoinMarkets indicates an expected call of FetchCoinMarkets.
func (*MockClientMockRecorder) FetchMarketChart ¶
func (mr *MockClientMockRecorder) FetchMarketChart(ctx, id, vsCurrency, days, cacheDurationSeconds interface{}) *gomock.Call
FetchMarketChart indicates an expected call of FetchMarketChart.
func (*MockClientMockRecorder) FetchSimplePrice ¶
func (mr *MockClientMockRecorder) FetchSimplePrice(ctx, ids, vsCurrencies, include24hrChange interface{}) *gomock.Call
FetchSimplePrice indicates an expected call of FetchSimplePrice.
func (*MockClientMockRecorder) FetchSupportedVsCurrencies ¶
func (mr *MockClientMockRecorder) FetchSupportedVsCurrencies(ctx interface{}) *gomock.Call
FetchSupportedVsCurrencies indicates an expected call of FetchSupportedVsCurrencies.