Skip to content

Commit

Permalink
chore: move counter to testutils (cosmos#20281)
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle authored May 6, 2024
1 parent ccc0419 commit 271a46c
Show file tree
Hide file tree
Showing 24 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion client/fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"google.golang.org/grpc/metadata"

"github.com/cosmos/cosmos-sdk/testutil/testdata"
"github.com/cosmos/cosmos-sdk/x/counter/types"
"github.com/cosmos/cosmos-sdk/testutil/x/counter/types"
)

type fuzzSuite struct {
Expand Down
6 changes: 3 additions & 3 deletions client/grpc_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import (
"github.com/cosmos/cosmos-sdk/runtime"
"github.com/cosmos/cosmos-sdk/testutil/integration"
"github.com/cosmos/cosmos-sdk/testutil/testdata"
"github.com/cosmos/cosmos-sdk/testutil/x/counter"
counterkeeper "github.com/cosmos/cosmos-sdk/testutil/x/counter/keeper"
countertypes "github.com/cosmos/cosmos-sdk/testutil/x/counter/types"
sdk "github.com/cosmos/cosmos-sdk/types"
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
"github.com/cosmos/cosmos-sdk/x/counter"
counterkeeper "github.com/cosmos/cosmos-sdk/x/counter/keeper"
countertypes "github.com/cosmos/cosmos-sdk/x/counter/types"
)

type IntegrationTestSuite struct {
Expand Down
4 changes: 2 additions & 2 deletions client/tx/aux_builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
"github.com/cosmos/cosmos-sdk/testutil/testdata"
"github.com/cosmos/cosmos-sdk/testutil/x/counter"
countertypes "github.com/cosmos/cosmos-sdk/testutil/x/counter/types"
sdk "github.com/cosmos/cosmos-sdk/types"
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
typestx "github.com/cosmos/cosmos-sdk/types/tx"
"github.com/cosmos/cosmos-sdk/types/tx/signing"
"github.com/cosmos/cosmos-sdk/x/counter"
countertypes "github.com/cosmos/cosmos-sdk/x/counter/types"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion client/tx/tx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import (
"github.com/cosmos/cosmos-sdk/crypto/keyring"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
"github.com/cosmos/cosmos-sdk/testutil/testdata"
countertypes "github.com/cosmos/cosmos-sdk/testutil/x/counter/types"
sdk "github.com/cosmos/cosmos-sdk/types"
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
txtypes "github.com/cosmos/cosmos-sdk/types/tx"
signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing"
countertypes "github.com/cosmos/cosmos-sdk/x/counter/types"
)

func newTestTxConfig() (client.TxConfig, codec.Codec) {
Expand Down
2 changes: 1 addition & 1 deletion codec/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
codectestutil "github.com/cosmos/cosmos-sdk/codec/testutil"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/testutil/testdata"
countertypes "github.com/cosmos/cosmos-sdk/testutil/x/counter/types"
sdk "github.com/cosmos/cosmos-sdk/types"
countertypes "github.com/cosmos/cosmos-sdk/x/counter/types"
)

type msgCounterWrapper struct {
Expand Down
2 changes: 1 addition & 1 deletion codec/proto_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/testutil/testdata"
countertypes "github.com/cosmos/cosmos-sdk/testutil/x/counter/types"
sdk "github.com/cosmos/cosmos-sdk/types"
countertypes "github.com/cosmos/cosmos-sdk/x/counter/types"
)

func createTestInterfaceRegistry() types.InterfaceRegistry {
Expand Down
4 changes: 2 additions & 2 deletions runtime/router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/runtime"
"github.com/cosmos/cosmos-sdk/testutil"
counterkeeper "github.com/cosmos/cosmos-sdk/x/counter/keeper"
countertypes "github.com/cosmos/cosmos-sdk/x/counter/types"
counterkeeper "github.com/cosmos/cosmos-sdk/testutil/x/counter/keeper"
countertypes "github.com/cosmos/cosmos-sdk/testutil/x/counter/types"
)

func TestRouterService(t *testing.T) {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion x/counter/depinject.go → testutil/x/counter/depinject.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"cosmossdk.io/depinject"
"cosmossdk.io/depinject/appconfig"

"github.com/cosmos/cosmos-sdk/x/counter/keeper"
"github.com/cosmos/cosmos-sdk/testutil/x/counter/keeper"
)

var _ depinject.OnePerModuleType = AppModule{}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"cosmossdk.io/core/appmodule"
"cosmossdk.io/core/event"

"github.com/cosmos/cosmos-sdk/x/counter/types"
"github.com/cosmos/cosmos-sdk/testutil/x/counter/types"
)

var StoreKey = "Counter"
Expand Down
4 changes: 2 additions & 2 deletions x/counter/module.go → testutil/x/counter/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"cosmossdk.io/core/appmodule"
"cosmossdk.io/core/registry"

"github.com/cosmos/cosmos-sdk/testutil/x/counter/keeper"
"github.com/cosmos/cosmos-sdk/testutil/x/counter/types"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/cosmos/cosmos-sdk/x/counter/keeper"
"github.com/cosmos/cosmos-sdk/x/counter/types"
)

var (
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "cosmos/app/v1alpha1/module.proto";
// Module is the config object of the counter module.
message Module {
option (cosmos.app.v1alpha1.module) = {
go_import: "github.com/cosmos/cosmos-sdk/x/counter"
go_import: "github.com/cosmos/cosmos-sdk/testutil/x/counter"
};

// authority defines the custom module authority. If not set, defaults to the governance module.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package cosmos.counter.v1;

option go_package = "github.com/cosmos/cosmos-sdk/x/counter/types";
option go_package = "github.com/cosmos/cosmos-sdk/testutil/x/counter/types";

// Query defines the gRPC querier service.
service Query {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "cosmos_proto/cosmos.proto";
import "cosmos/msg/v1/msg.proto";
import "amino/amino.proto";

option go_package = "github.com/cosmos/cosmos-sdk/x/counter/types";
option go_package = "github.com/cosmos/cosmos-sdk/testutil/x/counter/types";

// Msg defines the counter Msg service.
service Msg {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion types/mempool/mempool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ import (

codectestutil "github.com/cosmos/cosmos-sdk/codec/testutil"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
"github.com/cosmos/cosmos-sdk/testutil/x/counter"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/mempool"
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
txsigning "github.com/cosmos/cosmos-sdk/types/tx/signing"
"github.com/cosmos/cosmos-sdk/x/counter"
)

// testPubKey is a dummy implementation of PubKey used for testing.
Expand Down

0 comments on commit 271a46c

Please sign in to comment.