Skip to content

Commit

Permalink
run make format (cosmos#6416)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgimeno authored Jun 12, 2020
1 parent 3228c3b commit ddbb9a2
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 15 deletions.
4 changes: 2 additions & 2 deletions types/module/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ func TestManager_RegisterRoutes(t *testing.T) {

router := mocks.NewMockRouter(mockCtrl)
handler1, handler2 := sdk.Handler(func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) {
return nil,nil
return nil, nil
}), sdk.Handler(func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) {
return nil,nil
return nil, nil
})
route1 := sdk.NewRoute("route1", handler1)
route2 := sdk.NewRoute("route2", handler2)
Expand Down
21 changes: 11 additions & 10 deletions types/router_test.go
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
package types

import (
"github.com/stretchr/testify/assert"
"testing"

"github.com/stretchr/testify/assert"
)

func TestNilRoute(t *testing.T) {
tests := []struct{
name string
route Route
tests := []struct {
name string
route Route
expected bool
} {
}{
{
name: "all empty",
route: NewRoute("", nil),
name: "all empty",
route: NewRoute("", nil),
expected: true,
},
{
name: "only path",
route: NewRoute("some", nil),
name: "only path",
route: NewRoute("some", nil),
expected: true,
},
{
Expand All @@ -37,7 +38,7 @@ func TestNilRoute(t *testing.T) {
},
}

for _, tt := range tests {
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
assert.Equal(t, tt.expected, tt.route.Empty())
Expand Down
1 change: 1 addition & 0 deletions x/ibc/02-client/exported/exported.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"encoding/json"

ics23 "github.com/confio/ics23/go"

sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"

Expand Down
2 changes: 1 addition & 1 deletion x/ibc/04-channel/keeper/querier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/cosmos/cosmos-sdk/x/ibc/04-channel/types"
)

// TestQueryChannels tests singular, muliple, and no connection for
// TestQueryChannels tests singular, multiple, and no connection for
// correct retrieval of all channels.
func (suite *KeeperTestSuite) TestQueryChannels() {
path := []string{types.SubModuleName, types.QueryAllChannels}
Expand Down
1 change: 1 addition & 0 deletions x/ibc/09-localhost/types/client_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"strings"

ics23 "github.com/confio/ics23/go"

"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
Expand Down
1 change: 1 addition & 0 deletions x/ibc/23-commitment/types/merkle.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"net/url"

ics23 "github.com/confio/ics23/go"

sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/x/ibc/23-commitment/exported"
host "github.com/cosmos/cosmos-sdk/x/ibc/24-host"
Expand Down
3 changes: 2 additions & 1 deletion x/mint/client/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ package cli_test
import (
"testing"

"github.com/stretchr/testify/require"

"github.com/cosmos/cosmos-sdk/tests/cli"
"github.com/cosmos/cosmos-sdk/x/mint/client/testutil"
"github.com/stretchr/testify/require"
)

func TestCLIMintQueries(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion x/mint/client/testutil/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package testutil
import (
"fmt"

"github.com/stretchr/testify/require"

"github.com/cosmos/cosmos-sdk/tests"
"github.com/cosmos/cosmos-sdk/tests/cli"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/mint/types"
"github.com/stretchr/testify/require"
)

// QueryMintingParams returns the current minting parameters
Expand Down

0 comments on commit ddbb9a2

Please sign in to comment.