qa/spelling: Add Codespell support (#1121)

* Add codespell support

* Fix paths

* Add HTML files to exclusion list
This commit is contained in:
Adrian Gallagher
2023-01-30 12:36:56 +11:00
committed by GitHub
parent c785ae73a7
commit a79e0d2b3e
108 changed files with 359 additions and 318 deletions

View File

@@ -74,14 +74,14 @@ func TestStart(t *testing.T) {
func TestGetOrderbook(t *testing.T) {
_, err := h.GetOrderbook(context.Background(), "BTCUSD", 50)
if err != nil {
t.Error("Test faild - HitBTC GetOrderbook() error", err)
t.Error("Test failed - HitBTC GetOrderbook() error", err)
}
}
func TestGetTrades(t *testing.T) {
_, err := h.GetTrades(context.Background(), "BTCUSD", "", "", 0, 0, 0, 0)
if err != nil {
t.Error("Test faild - HitBTC GetTradeHistory() error", err)
t.Error("Test failed - HitBTC GetTradeHistory() error", err)
}
}
@@ -89,7 +89,7 @@ func TestGetChartCandles(t *testing.T) {
_, err := h.GetCandles(context.Background(),
"BTCUSD", "", "D1", time.Now().Add(-24*time.Hour), time.Now())
if err != nil {
t.Error("Test faild - HitBTC GetChartData() error", err)
t.Error("Test failed - HitBTC GetChartData() error", err)
}
}
@@ -126,7 +126,7 @@ func TestGetHistoricCandlesExtended(t *testing.T) {
func TestGetCurrencies(t *testing.T) {
_, err := h.GetCurrencies(context.Background())
if err != nil {
t.Error("Test faild - HitBTC GetCurrencies() error", err)
t.Error("Test failed - HitBTC GetCurrencies() error", err)
}
}