mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-09 07:26:48 +00:00
linter: Enable gofumpt and run against codebase (#1848)
* linter: Enable gofumpt and run against codebase * Address shazbert's nits * gofumpt: Fix issues after rebase
This commit is contained in:
@@ -8,9 +8,11 @@ import (
|
||||
"time"
|
||||
|
||||
objects "github.com/d5/tengo/v2"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/thrasher-corp/gocryptotrader/common"
|
||||
"github.com/thrasher-corp/gocryptotrader/exchanges/account"
|
||||
"github.com/thrasher-corp/gocryptotrader/exchanges/asset"
|
||||
"github.com/thrasher-corp/gocryptotrader/exchanges/kline"
|
||||
"github.com/thrasher-corp/gocryptotrader/gctscript/modules"
|
||||
"github.com/thrasher-corp/gocryptotrader/gctscript/wrappers/validator"
|
||||
)
|
||||
@@ -330,11 +332,7 @@ func TestParseInterval(t *testing.T) {
|
||||
}
|
||||
|
||||
_, err = parseInterval("6m")
|
||||
if err != nil {
|
||||
if !errors.Is(err, errInvalidInterval) {
|
||||
t.Error(err)
|
||||
}
|
||||
}
|
||||
assert.ErrorIs(t, err, kline.ErrInvalidInterval, "parseInterval should return invalid interval for 6m")
|
||||
}
|
||||
|
||||
func TestSetVerbose(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user