migration of open-etc-friends-pool for use with Etica/EGAZ
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
474 B

package exchange
import (
"fmt"
"os"
"testing"
)
func TestMain(m *testing.M) {
os.Exit(m.Run())
}
func TestGetData(t *testing.T) {
r := NewRestClient("Test", "https://api.coinmarketcap.com/v1/ticker/?convert=INR", "15s")
Result, err := r.GetData()
if err != nil {
t.Errorf("Error occured : %v", err)
return
}
for k, v := range Result {
fmt.Println("Key: %s , Value, %s", k, v)
}
}
func BytesToString(data []byte) string {
return string(data[:])
}