Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ EXCLUDED_UNIT_PACKAGES=$(shell go list ./... | grep -v tests | grep -v testutil

mocks:
@echo "--> Installing mockgen"
go install github.com/golang/mock/mockgen@v1.6.0
go install go.uber.org/mock/mockgen@v0.6.0
@echo "--> Generating mocks"
@./scripts/mockgen.sh

Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ require (
github.com/cosmos/ibc-go/modules/capability v1.0.1
github.com/cosmos/ibc-go/v10 v10.3.1-0.20250909102629-ed3b125c7b6f
github.com/ethereum/go-ethereum v1.15.11
github.com/golang/mock v1.6.0
github.com/golang/protobuf v1.5.4
github.com/gorilla/mux v1.8.1
github.com/grpc-ecosystem/grpc-gateway v1.16.0
Expand All @@ -35,6 +34,7 @@ require (
github.com/spf13/cobra v1.10.1
github.com/spf13/pflag v1.0.10
github.com/stretchr/testify v1.11.1
go.uber.org/mock v0.6.0
google.golang.org/genproto/googleapis/api v0.0.0-20250707201910-8d1bb00bc6a7
google.golang.org/grpc v1.75.0
google.golang.org/protobuf v1.36.10
Expand Down Expand Up @@ -250,7 +250,6 @@ require (
go.opentelemetry.io/otel/sdk v1.37.0 // indirect
go.opentelemetry.io/otel/sdk/metric v1.37.0 // indirect
go.opentelemetry.io/otel/trace v1.37.0 // indirect
go.uber.org/mock v0.6.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
go.yaml.in/yaml/v2 v2.4.2 // indirect
Expand Down
2 changes: 1 addition & 1 deletion x/poa/ante/poa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
sdktestutil "github.com/cosmos/cosmos-sdk/testutil"
sdk "github.com/cosmos/cosmos-sdk/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/require"
"github.com/xrplevm/node/v10/x/poa/testutil"
"github.com/xrplevm/node/v10/x/poa/types"
"go.uber.org/mock/gomock"
)

func setupPoaDecorator(t *testing.T) (
Expand Down
2 changes: 1 addition & 1 deletion x/poa/keeper/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/golang/mock/gomock"
"github.com/xrplevm/node/v10/x/poa/testutil"
"github.com/xrplevm/node/v10/x/poa/types"
"go.uber.org/mock/gomock"

stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
)
Expand Down
2 changes: 1 addition & 1 deletion x/poa/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
types1 "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/require"
"github.com/xrplevm/node/v10/x/poa/testutil"
"github.com/xrplevm/node/v10/x/poa/types"
"go.uber.org/mock/gomock"
)

func poaKeeperTestSetup(t *testing.T) (*Keeper, sdk.Context) {
Expand Down
2 changes: 1 addition & 1 deletion x/poa/keeper/msg_server_add_validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
types1 "github.com/cosmos/cosmos-sdk/codec/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/require"
"github.com/xrplevm/node/v10/x/poa/testutil"
"github.com/xrplevm/node/v10/x/poa/types"
"go.uber.org/mock/gomock"
)

func TestMsgServer_AddValidator(t *testing.T) {
Expand Down
60 changes: 35 additions & 25 deletions x/poa/testutil/expected_keepers_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading