Skip to content

Commit

Permalink
Fixed linter issues, increased code cov & expanded functionality in G…
Browse files Browse the repository at this point in the history
…emini.
  • Loading branch information
shazbert committed Oct 3, 2017
1 parent f274722 commit 939ce3a
Show file tree
Hide file tree
Showing 4 changed files with 663 additions and 226 deletions.
63 changes: 29 additions & 34 deletions exchanges/coinut/coinut_test.go
Original file line number Diff line number Diff line change
@@ -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)
// // }
Loading

0 comments on commit 939ce3a

Please sign in to comment.