mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-28 15:10:32 +00:00
29 lines
691 B
Go
29 lines
691 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestGetCollatedExchangeAccountInfoByCoin(t *testing.T) {
|
|
GetCollatedExchangeAccountInfoByCoin(GetAllEnabledExchangeAccountInfo().Data)
|
|
}
|
|
|
|
func TestGetAccountCurrencyInfoByExchangeName(t *testing.T) {
|
|
_, err := GetAccountCurrencyInfoByExchangeName(
|
|
GetAllEnabledExchangeAccountInfo().Data, "ANX",
|
|
)
|
|
if err == nil {
|
|
t.Error(
|
|
"Test Failed - Wallet_Routes_Test.go - GetAccountCurrencyInfoByExchangeName",
|
|
)
|
|
}
|
|
}
|
|
|
|
func TestGetAllEnabledExchangeAccountInfo(t *testing.T) {
|
|
if value := GetAllEnabledExchangeAccountInfo(); len(value.Data) != 0 {
|
|
t.Error(
|
|
"Test Failed - Wallet_Routes_Test.go - GetAllEnabledExchangeAccountInfo",
|
|
)
|
|
}
|
|
}
|