Skip to content

Commit

Permalink
mockery generate
Browse files Browse the repository at this point in the history
  • Loading branch information
temaniarpit27 committed Jan 1, 2025
1 parent 79c94e2 commit 8cdd1b1
Show file tree
Hide file tree
Showing 51 changed files with 218 additions and 704 deletions.
149 changes: 149 additions & 0 deletions .mockery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
with-expecter: true
issue-845-fix: True
resolve-type-alias: False
dir: "{{ .InterfaceDir }}/../mocks"
outpkg: "mocks"
filename: "{{ .InterfaceName | snakecase | lower }}.go"
mockname: "{{ .InterfaceName }}"
packages:
github.com/0xPolygon/cdk/agglayer:
config:
inpackage: True
dir: "{{ .InterfaceDir }}"
outpkg: "{{ .PackageName }}"
interfaces:
AgglayerClientInterface:
config:
mockname: AgglayerClientMock
filename: mock_agglayer_client.go
github.com/0xPolygonHermez/zkevm-synchronizer-l1/synchronizer:
config:
interfaces:
Synchronizer:
config:
dir: "./aggregator/mocks"
mockname: "{{ .InterfaceName }}InterfaceMock"
filename: "mock_{{ .InterfaceName | snakecase | lower }}.go"
github.com/0xPolygon/cdk/aggregator:
config:
dir: "{{ .InterfaceDir }}/mocks"
filename: "mock_{{ .InterfaceName | snakecase | lower }}.go"
mockname: "{{ .InterfaceName }}Mock"
interfaces:
ProverInterface:
Etherman:
StorageInterface:
EthTxManagerClient:
RPCInterface:
github.com/0xPolygon/cdk/aggregator/prover:
config:
dir: "{{ .InterfaceDir }}/mocks"
interfaces:
AggregatorService_ChannelServer:
config:
mockname: ChannelMock
filename: mock_channel.go
github.com/0xPolygon/cdk/bridgesync:
config:
dir: "{{ .InterfaceDir }}/mocks"
interfaces:
ReorgDetector:
EthClienter:
github.com/0xPolygon/cdk/dataavailability:
config:
dir: "{{ .InterfaceDir }}/mocks_da"
all: True
outpkg: "mocks_da"
github.com/0xPolygon/cdk/db:
config:
dir: "{{ .InterfaceDir }}/../aggregator/mocks"
filename: "mock_{{ .InterfaceName | snakecase | lower }}.go"
mockname: "{{ .InterfaceName }}Mock"
interfaces:
Txer:
github.com/0xPolygon/cdk/l1infotreesync:
config:
dir: "{{ .InterfaceDir }}/mocks"
interfaces:
EthClienter:
github.com/0xPolygon/cdk/reorgdetector:
config:
dir: "{{ .InterfaceDir }}"
outpkg: "{{ .PackageName }}"
mockname: "{{ .InterfaceName }}Mock"
filename: "mock_{{ .InterfaceName | snakecase | lower }}.go"
interfaces:
EthClient:
github.com/0xPolygon/cdk/rpc/client:
config:
interfaces:
BridgeClientInterface:
ClientInterface:
ClientFactoryInterface:
github.com/0xPolygon/cdk/rpc:
config:
dir: "{{ .InterfaceDir }}/mocks"
interfaces:
Bridger:
LastGERer:
L1InfoTreer:
ClaimSponsorer:
github.com/0xPolygon/cdk/sequencesender:
config:
dir: "{{ .InterfaceDir }}/mocks"
outpkg: "mocks"
mockname: "{{ .InterfaceName }}Mock"
interfaces:
EthTxManager:
configs:
- mockname: EthTxManagerMock
filename: mock_ethtxmanager.go
- mockname: EthTxManagerMock
filename: mock_ethtxmanager.go
dir: "{{ .InterfaceDir }}/../test/helpers"
outpkg: "helpers"
Etherman:
RPCInterface:
github.com/0xPolygon/cdk/sequencesender/txbuilder:
config:
dir: "{{ .InterfaceDir }}/mocks_txbuilder"
all: True
outpkg: "mocks_txbuilder"
mockname: "{{ .InterfaceName | camelcase | firstUpper }}"
interfaces:
TxBuilder:
configs:
- dir: "{{ .InterfaceDir }}/../mocks"
outpkg: "mocks"
mockname: "{{ .InterfaceName | camelcase | firstUpper }}Mock"
- dir: "{{ .InterfaceDir }}/mocks_txbuilder"
outpkg: "mocks_txbuilder"
mockname: "{{ .InterfaceName | camelcase | firstUpper }}"
github.com/0xPolygon/cdk/sync:
config:
dir: "{{ .InterfaceDir }}"
outpkg: "{{ .PackageName }}"
mockname: "{{ .InterfaceName }}Mock"
filename: "mock_{{ .InterfaceName | snakecase | lower }}.go"
inpackage: True
interfaces:
ReorgDetector:
configs:
- dir: "{{ .InterfaceDir }}/../l1infotreesync/mocks"
outpkg: "mocks"
mockname: "{{ .InterfaceName }}Mock"
filename: "mock_{{ .InterfaceName | snakecase | lower }}.go"
inpackage: False
- dir: "{{ .InterfaceDir }}"
outpkg: "{{ .PackageName }}"
mockname: "{{ .InterfaceName }}Mock"
filename: "mock_{{ .InterfaceName | snakecase | lower }}.go"
processorInterface:
config:
mockname: "ProcessorMock"
evmDownloaderFull:
config:
mockname: "EVMDownloaderMock"
EthClienter:
config:
mockname: "L2Mock"
2 changes: 1 addition & 1 deletion agglayer/mock_agglayer_client.go

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

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

2 changes: 1 addition & 1 deletion aggregator/mocks/mock_etherman.go

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

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

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

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

2 changes: 1 addition & 1 deletion aggregator/mocks/mock_synchronizer.go

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

2 changes: 1 addition & 1 deletion aggregator/mocks/mock_txer.go

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

26 changes: 13 additions & 13 deletions aggregator/prover/mocks/mock_channel.go

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

Loading

0 comments on commit 8cdd1b1

Please sign in to comment.