<commit_before>package btcc

import (
	"testing"
	"time"

	"github.com/thrasher-/gocryptotrader/config"
)

// Please supply your own APIkeys here to do better tests
const (
	apiKey    = ""
	apiSecret = ""
)

var b BTCC

func TestSetDefaults(t *testing.T) {
	b.SetDefaults()
}

func TestSetup(t *testing.T) {
	cfg := config.GetConfig()
	cfg.LoadConfig("../../testdata/configtest.json")
	bConfig, err := cfg.GetExchangeConfig("BTCC")
	if err != nil {
		t.Error("Test Failed - BTCC Setup() init error")
	}
	b.Setup(bConfig)

	if !b.IsEnabled() || b.AuthenticatedAPISupport || b.RESTPollingDelay != time.Duration(10) ||
		b.Verbose || b.Websocket || len(b.BaseCurrencies) < 1 ||
		len(b.AvailablePairs) < 1 || len(b.EnabledPairs) < 1 {
		t.Error("Test Failed - BTCC Setup values not set correctly")
	}
}

func TestGetFee(t *testing.T) {
	if b.GetFee() != 0 {
		t.Error("Test failed - GetFee() error")
	}
}

func TestGetTicker(t *testing.T) {
	_, err := b.GetTicker("BTCUSD")
	if err != nil {
		t.Error("Test failed - GetTicker() error", err)
	}
}

func TestGetTradeHistory(t *testing.T) {
	_, err := b.GetTradeHistory("BTCUSD", 0, 0, time.Time{})
	if err != nil {
		t.Error("Test failed - GetTradeHistory() error", err)
	}
}

func TestGetOrderBook(t *testing.T) {
	_, err := b.GetOrderBook("BTCUSD", 100)
	if err != nil {
		t.Error("Test failed - GetOrderBook() error", err)
	}
	_, err = b.GetOrderBook("BTCUSD", 0)
	if err != nil {
		t.Error("Test failed - GetOrderBook() error", err)
	}
}

func TestGetAccountInfo(t *testing.T) {
	err := b.GetAccountInfo("")
	if err == nil {
		t.Error("Test failed - GetAccountInfo() error", err)
	}
}<commit_msg>Skip BTCC tests as REST API is not available after infrastructure update<commit_after>package btcc

import (
	"testing"
	"time"

	"github.com/thrasher-/gocryptotrader/config"
)

// Please supply your own APIkeys here to do better tests
const (
	apiKey    = ""
	apiSecret = ""
)

var b BTCC

func TestSetDefaults(t *testing.T) {
	b.SetDefaults()
}

func TestSetup(t *testing.T) {
	cfg := config.GetConfig()
	cfg.LoadConfig("../../testdata/configtest.json")
	bConfig, err := cfg.GetExchangeConfig("BTCC")
	if err != nil {
		t.Error("Test Failed - BTCC Setup() init error")
	}
	b.Setup(bConfig)

	if !b.IsEnabled() || b.AuthenticatedAPISupport || b.RESTPollingDelay != time.Duration(10) ||
		b.Verbose || b.Websocket || len(b.BaseCurrencies) < 1 ||
		len(b.AvailablePairs) < 1 || len(b.EnabledPairs) < 1 {
		t.Error("Test Failed - BTCC Setup values not set correctly")
	}
}

func TestGetFee(t *testing.T) {
	if b.GetFee() != 0 {
		t.Error("Test failed - GetFee() error")
	}
}

func TestGetTicker(t *testing.T) {
	t.Skip()
	_, err := b.GetTicker("BTCUSD")
	if err != nil {
		t.Error("Test failed - GetTicker() error", err)
	}
}

func TestGetTradeHistory(t *testing.T) {
	t.Skip()
	_, err := b.GetTradeHistory("BTCUSD", 0, 0, time.Time{})
	if err != nil {
		t.Error("Test failed - GetTradeHistory() error", err)
	}
}

func TestGetOrderBook(t *testing.T) {
	t.Skip()
	_, err := b.GetOrderBook("BTCUSD", 100)
	if err != nil {
		t.Error("Test failed - GetOrderBook() error", err)
	}
	_, err = b.GetOrderBook("BTCUSD", 0)
	if err != nil {
		t.Error("Test failed - GetOrderBook() error", err)
	}
}

func TestGetAccountInfo(t *testing.T) {
	t.Skip()
	err := b.GetAccountInfo("")
	if err == nil {
		t.Error("Test failed - GetAccountInfo() error", err)
	}
}
{'fraction_non_alphanumeric': 0.17173207435821777, 'fraction_numerical': 0.007081735025081145, 'mean_word_length': 3.7746478873239435, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2331734', 'n_tokens_mistral': 1382, 'n_tokens_neox': 1313, 'n_words': 301}