Fixed linter issues, increased code cov & expanded functionality in Gemini.

This commit is contained in:
Ryan O'Hara-Reid
2017-09-07 19:01:51 +10:00
parent eef13c4515
commit dae90a2eaa
4 changed files with 661 additions and 224 deletions

View File

@@ -1,37 +1,32 @@
package coinut
import (
"testing"
"github.com/thrasher-/gocryptotrader/config"
)
const (
apiKey = ""
apiSecret = ""
)
var c COINUT
func TestSetDefaults(t *testing.T) {
c.SetDefaults()
}
func TestSetup(t *testing.T) {
exch := config.ExchangeConfig{}
c.Setup(exch)
exch.Enabled = true
exch.APIKey = apiKey
exch.APISecret = apiSecret
c.Setup(exch)
}
// func TestGetInstruments(t *testing.T) {
// c.Verbose = true
// resp, err := c.GetInstruments()
// if err == nil {
// t.Error("Test failed - GetInstruments() error", err)
// }
// log.Println(resp)
//
// const (
// apiKey = ""
// apiSecret = ""
// )
//
// var c COINUT
//
// func TestSetDefaults(t *testing.T) {
// c.SetDefaults()
// }
//
// func TestSetup(t *testing.T) {
// exch := config.ExchangeConfig{}
// c.Setup(exch)
//
// exch.Enabled = true
// exch.APIKey = apiKey
// exch.APISecret = apiSecret
// c.Setup(exch)
// }
//
// // func TestGetInstruments(t *testing.T) {
// // c.Verbose = true
// // resp, err := c.GetInstruments()
// // if err == nil {
// // t.Error("Test failed - GetInstruments() error", err)
// // }
// // log.Println(resp)
// // }