fix_: update mock paths

This commit is contained in:
Igor Sirotin 2024-09-24 23:28:37 +01:00
parent ef9279df63
commit 8a2366c96b
No known key found for this signature in database
GPG Key ID: 425E227CAAB81F95
7 changed files with 7 additions and 6 deletions

1
.gitignore vendored
View File

@ -114,3 +114,4 @@ integration-tests/*.log
# generated files
mock
mock.go

View File

@ -1,6 +1,6 @@
package settings
//go:generate mockgen -package=mocksettings -source=database_settings_manager.go -destination=mocks/database_settings_manager_mock.go
//go:generate mockgen -package=mock_settings -source=database_settings_manager.go -destination=mock/database_settings_manager.go
import (
"database/sql"

View File

@ -1,6 +1,6 @@
package peer
//go:generate mockgen -package=peer -source=service.go -destination=discoverer_mock.go
//go:generate mockgen -package=mock_peer -source=service.go -destination=mock/service.go
import (
"github.com/ethereum/go-ethereum/node"

View File

@ -1,6 +1,6 @@
package pathprocessor
//go:generate mockgen -package=mock_pathprocessor -source=processor.go -destination=mock_pathprocessor/processor.go
//go:generate mockgen -package=mock_pathprocessor -source=processor.go -destination=mock/processor.go
import (
"math/big"

View File

@ -24,7 +24,6 @@ import (
"github.com/status-im/status-go/services/wallet/walletevent"
"github.com/status-im/status-go/t/helpers"
"github.com/status-im/status-go/transactions"
"github.com/status-im/status-go/transactions/mock_transactor"
"github.com/status-im/status-go/walletdatabase"
)

View File

@ -1,6 +1,6 @@
package transactions
//go:generate mockgen -source=transactor.go -destination=mock_transactor/transactor.go
//go:generate mockgen -package=mock_transactions -source=transactor.go -destination=mock/transactor.go
import (
"bytes"

View File

@ -27,6 +27,7 @@ import (
"github.com/status-im/status-go/sqlite"
"github.com/status-im/status-go/t/utils"
"github.com/status-im/status-go/transactions/fake"
mock_fake "github.com/status-im/status-go/transactions/fake/mock"
)
func TestTransactorSuite(t *testing.T) {
@ -39,7 +40,7 @@ type TransactorSuite struct {
server *gethrpc.Server
client *gethrpc.Client
txServiceMockCtrl *gomock.Controller
txServiceMock *fake.MockPublicTransactionPoolAPI
txServiceMock *mock_fake.MockPublicTransactionPoolAPI
nodeConfig *params.NodeConfig
manager *Transactor