mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-30 07:26:46 +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:
@@ -45,7 +45,8 @@ func TestSubscribeTicker(t *testing.T) {
|
||||
err = ProcessTicker(&Price{
|
||||
Pair: p,
|
||||
ExchangeName: "subscribetest",
|
||||
AssetType: asset.Spot})
|
||||
AssetType: asset.Spot,
|
||||
})
|
||||
if err == nil {
|
||||
t.Error("error cannot be nil")
|
||||
}
|
||||
@@ -55,7 +56,8 @@ func TestSubscribeTicker(t *testing.T) {
|
||||
err = ProcessTicker(&Price{
|
||||
Pair: sillyP,
|
||||
ExchangeName: "subscribetest",
|
||||
AssetType: asset.Spot})
|
||||
AssetType: asset.Spot,
|
||||
})
|
||||
if err == nil {
|
||||
t.Error("error cannot be nil")
|
||||
}
|
||||
@@ -64,7 +66,8 @@ func TestSubscribeTicker(t *testing.T) {
|
||||
err = ProcessTicker(&Price{
|
||||
Pair: sillyP,
|
||||
ExchangeName: "subscribetest",
|
||||
AssetType: asset.Spot})
|
||||
AssetType: asset.Spot,
|
||||
})
|
||||
if err == nil {
|
||||
t.Error("error cannot be nil")
|
||||
}
|
||||
@@ -83,7 +86,8 @@ func TestSubscribeTicker(t *testing.T) {
|
||||
err = ProcessTicker(&Price{
|
||||
Pair: p,
|
||||
ExchangeName: "subscribetest",
|
||||
AssetType: asset.Spot})
|
||||
AssetType: asset.Spot,
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -105,7 +109,8 @@ func TestSubscribeToExchangeTickers(t *testing.T) {
|
||||
err = ProcessTicker(&Price{
|
||||
Pair: p,
|
||||
ExchangeName: "subscribeExchangeTest",
|
||||
AssetType: asset.Spot})
|
||||
AssetType: asset.Spot,
|
||||
})
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user