mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-24 23:16:52 +00:00
qa/spelling: Add Codespell support (#1121)
* Add codespell support * Fix paths * Add HTML files to exclusion list
This commit is contained in:
@@ -277,7 +277,7 @@ type PNLResult struct {
|
||||
Direction Side
|
||||
Fee decimal.Decimal
|
||||
IsLiquidated bool
|
||||
// Is event is supposed to show that something has happened and it isnt just tracking in time
|
||||
// Is event is supposed to show that something has happened and it isn't just tracking in time
|
||||
IsOrder bool
|
||||
}
|
||||
|
||||
|
||||
@@ -266,17 +266,17 @@ func TestOrderSides(t *testing.T) {
|
||||
func TestOrderTypes(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
var ot Type
|
||||
if ot.String() != "UNKNOWN" {
|
||||
t.Errorf("unexpected string %s", ot.String())
|
||||
var orderType Type
|
||||
if orderType.String() != "UNKNOWN" {
|
||||
t.Errorf("unexpected string %s", orderType.String())
|
||||
}
|
||||
|
||||
if ot.Lower() != "unknown" {
|
||||
t.Errorf("unexpected string %s", ot.Lower())
|
||||
if orderType.Lower() != "unknown" {
|
||||
t.Errorf("unexpected string %s", orderType.Lower())
|
||||
}
|
||||
|
||||
if ot.Title() != "Unknown" {
|
||||
t.Errorf("unexpected string %s", ot.Title())
|
||||
if orderType.Title() != "Unknown" {
|
||||
t.Errorf("unexpected string %s", orderType.Title())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user