mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-05 07:26:47 +00:00
Fixed linter issues, increased code cov & expanded functionality in Gemini.
This commit is contained in:
@@ -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)
|
||||
// // }
|
||||
|
||||
Reference in New Issue
Block a user