testutil

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTestServer

func GenerateTestServer(t *testing.T, expectPath string, expectMethod string, expectBody string, jsonResponse string) *httptest.Server

func GetATradingAccountJsonResponse

func GetATradingAccountJsonResponse() string

func GetAllAccountBalancesJsonResponse

func GetAllAccountBalancesJsonResponse() string

func GetCancelAnOrderJsonResponse

func GetCancelAnOrderJsonResponse() string

func GetCloseAllTradeJsonResponse

func GetCloseAllTradeJsonResponse() string

func GetCloseLoanBidJsonResponse

func GetCloseLoanBidJsonResponse() string

func GetCloseTradeJsonResponse

func GetCloseTradeJsonResponse() string

func GetCreateAnOrderJsonResponse

func GetCreateAnOrderJsonResponse() string

func GetCreateFiatAccountJsonResponse

func GetCreateFiatAccountJsonResponse() string

func GetCreateLoanBidJsonResponse

func GetCreateLoanBidJsonResponse() string

func GetCryptoAccountsJsonResponse

func GetCryptoAccountsJsonResponse() string

func GetEditALiveOrderJsonResponse

func GetEditALiveOrderJsonResponse() string

func GetExecutionsByTimestampJsonResponse

func GetExecutionsByTimestampJsonResponse() string

func GetExecutionsJsonResponse

func GetExecutionsJsonResponse() string

func GetExpectedATradingAccount

func GetExpectedATradingAccount() *models.TradingAccount

func GetExpectedAllAccountBalancesModel

func GetExpectedAllAccountBalancesModel() []*models.AccountBalance

func GetExpectedCancelAnOrderModel

func GetExpectedCancelAnOrderModel() *models.Order

func GetExpectedCloseAllTradeModel

func GetExpectedCloseAllTradeModel() []*models.Trade

func GetExpectedCloseLoanBidModel

func GetExpectedCloseLoanBidModel() *models.LoanBid

func GetExpectedCloseTradeModel

func GetExpectedCloseTradeModel() *models.Trade

func GetExpectedCloseTradeRequestBody

func GetExpectedCloseTradeRequestBody() string

func GetExpectedCreateALoanBidRequestBody

func GetExpectedCreateALoanBidRequestBody() string

func GetExpectedCreateAnOrderModel

func GetExpectedCreateAnOrderModel() *models.Order

func GetExpectedCreateAnOrderRequestBody

func GetExpectedCreateAnOrderRequestBody() string

func GetExpectedCreateFiatAccountModel

func GetExpectedCreateFiatAccountModel() *models.Account

func GetExpectedCreateLoanBidModel

func GetExpectedCreateLoanBidModel() *models.LoanBid

func GetExpectedCryptoAccountsModel

func GetExpectedCryptoAccountsModel() []*models.CryptoAccount

func GetExpectedEditALiveOrderModel

func GetExpectedEditALiveOrderModel() *models.Order

func GetExpectedEditALiveOrderRequestBody

func GetExpectedEditALiveOrderRequestBody() string

func GetExpectedExecutionsByTimestampModel

func GetExpectedExecutionsByTimestampModel() []*models.ExecutionsModels

func GetExpectedExecutionsModel

func GetExpectedExecutionsModel() *models.Executions

func GetExpectedFiatAccountsModel

func GetExpectedFiatAccountsModel() []*models.Account

func GetExpectedInterestRatesModel

func GetExpectedInterestRatesModel() *models.InterestRates

func GetExpectedLoanBidsModel

func GetExpectedLoanBidsModel() *models.LoanBids

func GetExpectedLoansModel

func GetExpectedLoansModel() *models.Loans

func GetExpectedOrderBookModel

func GetExpectedOrderBookModel() *models.PriceLevels

func GetExpectedOrderModel

func GetExpectedOrderModel() *models.Order

func GetExpectedOrderTradesModel

func GetExpectedOrderTradesModel() []*models.Trade

func GetExpectedOrdersModel

func GetExpectedOrdersModel() *models.Orders

func GetExpectedOwnExecutionsModel

func GetExpectedOwnExecutionsModel() *models.Executions

func GetExpectedProductmodel

func GetExpectedProductmodel() *models.Product

func GetExpectedProductsModel

func GetExpectedProductsModel() []*models.Product

func GetExpectedTradesLoansModel

func GetExpectedTradesLoansModel() []*models.Loan

func GetExpectedTradesModel

func GetExpectedTradesModel() *models.Trades

func GetExpectedTradingAccounts

func GetExpectedTradingAccounts() []*models.TradingAccount

func GetExpectedUpdateALoanModel

func GetExpectedUpdateALoanModel() *models.Loan

func GetExpectedUpdateLeverageLevel

func GetExpectedUpdateLeverageLevel() *models.TradingAccount

func GetExpectedUpdateLeverageLevelRequestBody

func GetExpectedUpdateLeverageLevelRequestBody() string

func GetExpectedUpdateLoanBidRequestBody

func GetExpectedUpdateLoanBidRequestBody() string

func GetExpectedUpdateTradeModel

func GetExpectedUpdateTradeModel() *models.Trade

func GetExpectedUpdateTradeRequestBody

func GetExpectedUpdateTradeRequestBody() string

func GetFiatAccountsJsonResponse

func GetFiatAccountsJsonResponse() string

func GetInterestRatesJsonResponse

func GetInterestRatesJsonResponse() string

func GetLoanBidsJsonResponse

func GetLoanBidsJsonResponse() string

func GetLoansJsonResponse

func GetLoansJsonResponse() string

func GetOrderBookJsonResponse

func GetOrderBookJsonResponse() string

func GetOrderJsonResponse

func GetOrderJsonResponse() string

func GetOrderTradesJsonResponse

func GetOrderTradesJsonResponse() string

func GetOrdersJsonResponse

func GetOrdersJsonResponse() string

func GetOwnExecutionsJsonResponse

func GetOwnExecutionsJsonResponse() string

func GetProductJsonResponse

func GetProductJsonResponse() string

func GetProductsJsonResponse

func GetProductsJsonResponse() string

func GetTradesJsonResponse

func GetTradesJsonResponse() string

func GetTradesLoansJsonResponse

func GetTradesLoansJsonResponse() string

func GetTradingAccountsJsonResponse

func GetTradingAccountsJsonResponse() string

func GetUpdateALoanJsonResponse

func GetUpdateALoanJsonResponse() string

func GetUpdateLeverageLevelJsonResponse

func GetUpdateLeverageLevelJsonResponse() string

func GetUpdateTradeJsonResponse

func GetUpdateTradeJsonResponse() string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL