Coinbase error fix, deleting nearly completely unused test file, other minor changes (#191)

This commit is contained in:
cranktakular
2018-10-12 12:53:32 +11:00
committed by Adrian Gallagher
parent 58096b689c
commit f4766fb4dd
4 changed files with 9 additions and 36 deletions

View File

@@ -90,7 +90,7 @@ func ReloadExchange(name string) error {
return nil
}
// UnloadExchange unloads an exchange by
// UnloadExchange unloads an exchange by name
func UnloadExchange(name string) error {
nameLower := common.StringToLower(name)

View File

@@ -44,7 +44,7 @@ func TestGetFee(t *testing.T) {
func TestGetProducts(t *testing.T) {
_, err := c.GetProducts()
if err != nil {
t.Error("Test failed - GetProducts() error")
t.Errorf("Test failed - Coinbase, GetProducts() Error: %s", err)
}
}

View File

@@ -2,13 +2,13 @@ package coinbasepro
// Product holds product information
type Product struct {
ID string `json:"id"`
BaseCurrency string `json:"base_currency"`
QuoteCurrency string `json:"quote_currency"`
BaseMinSize float64 `json:"base_min_size,string"`
BaseMaxSize int64 `json:"base_max_size,string"`
QuoteIncrement float64 `json:"quote_increment,string"`
DisplayName string `json:"string"`
ID string `json:"id"`
BaseCurrency string `json:"base_currency"`
QuoteCurrency string `json:"quote_currency"`
BaseMinSize float64 `json:"base_min_size,string"`
BaseMaxSize interface{} `json:"base_max_size"`
QuoteIncrement float64 `json:"quote_increment,string"`
DisplayName string `json:"string"`
}
// Ticker holds basic ticker information

View File

@@ -1,27 +0,0 @@
package main
import "testing"
func TestSetupBotExchanges(t *testing.T) {
// setupBotExchanges()
}
func TestMain(t *testing.T) {
// Nothing
}
func TestAdjustGoMaxProcs(t *testing.T) {
AdjustGoMaxProcs()
}
func TestHandleInterrupt(t *testing.T) {
HandleInterrupt()
}
func TestShutdown(t *testing.T) {
// Nothing
}
func TestSeedExchangeAccountInfo(t *testing.T) {
SeedExchangeAccountInfo(GetAllEnabledExchangeAccountInfo().Data)
}