Skip to content

Commit

Permalink
format Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Dec 27, 2024
1 parent 1e1f270 commit f1098b0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ generate-mocks: generate-mocks-bridgesync generate-mocks-reorgdetector \
generate-mocks-sync generate-mocks-aggregator \
generate-mocks-aggsender generate-mocks-agglayer

COMMON_MOCKERY_PARAMS=--disable-version-string --with-expecter --exported

.PHONY: generate-mocks-bridgesync
generate-mocks-bridgesync: ## Generates mocks for bridgesync, using mockery tool
export "GOROOT=$$(go env GOROOT)" && $$(go env GOPATH)/bin/mockery --all --case snake --dir ../bridgesync --output ../bridgesync/mocks --outpkg mocks_bridgesync ${COMMON_MOCKERY_PARAMS}
Expand All @@ -13,8 +15,6 @@ generate-mocks-bridgesync: ## Generates mocks for bridgesync, using mockery tool
generate-mocks-reorgdetector: ## Generates mocks for reorgdetector, using mockery tool
export "GOROOT=$$(go env GOROOT)" && $$(go env GOPATH)/bin/mockery --name=EthClient --dir=../reorgdetector --output=../reorgdetector --outpkg=reorgdetector --inpackage --structname=EthClientMock --filename=mock_eth_client.go ${COMMON_MOCKERY_PARAMS}

COMMON_MOCKERY_PARAMS=--disable-version-string --with-expecter --exported

.PHONY: generate-mocks-rpc
generate-mocks-rpc: ## Generates mocks for rpc, using mockery tool
export "GOROOT=$$(go env GOROOT)" && $$(go env GOPATH)/bin/mockery --all --case snake --dir ../rpc --output ../rpc/mocks --outpkg mocks ${COMMON_MOCKERY_PARAMS}
Expand All @@ -40,7 +40,6 @@ generate-mocks-sync: ## Generates mocks for sync, using mockery tool
export "GOROOT=$$(go env GOROOT)" && $$(go env GOPATH)/bin/mockery --name=processorInterface --dir=../sync --output=../sync --outpkg=sync --inpackage --structname=ProcessorMock --filename=mock_processor_test.go ${COMMON_MOCKERY_PARAMS}
export "GOROOT=$$(go env GOROOT)" && $$(go env GOPATH)/bin/mockery --name=ReorgDetector --dir=../sync --output=../sync --outpkg=sync --inpackage --structname=ReorgDetectorMock --filename=mock_reorgdetector_test.go ${COMMON_MOCKERY_PARAMS}


.PHONY: generate-mocks-aggregator
generate-mocks-aggregator: ## Generates mocks for aggregator, using mockery tool
export "GOROOT=$$(go env GOROOT)" && $$(go env GOPATH)/bin/mockery --name=ProverInterface --dir=../aggregator --output=../aggregator/mocks --outpkg=mocks --structname=ProverInterfaceMock --filename=mock_prover.go ${COMMON_MOCKERY_PARAMS}
Expand All @@ -52,7 +51,6 @@ generate-mocks-aggregator: ## Generates mocks for aggregator, using mockery tool
export "GOROOT=$$(go env GOROOT)" && $$(go env GOPATH)/bin/mockery --name=RPCInterface --dir=../aggregator --output=../aggregator/mocks --outpkg=mocks --structname=RPCInterfaceMock --filename=mock_rpc.go ${COMMON_MOCKERY_PARAMS}
export "GOROOT=$$(go env GOROOT)" && $$(go env GOPATH)/bin/mockery --name=AggregatorService_ChannelServer --dir=../aggregator/prover --output=../aggregator/prover/mocks --outpkg=mocks --structname=ChannelMock --filename=mock_channel.go ${COMMON_MOCKERY_PARAMS}


.PHONY: generate-mocks-aggsender
generate-mocks-aggsender: ## Generates mocks for aggsender, using mockery tool
export "GOROOT=$$(go env GOROOT)" && $$(go env GOPATH)/bin/mockery --all --case snake --dir ../aggsender --output ../aggsender/mocks --outpkg mocks ${COMMON_MOCKERY_PARAMS}
Expand Down

0 comments on commit f1098b0

Please sign in to comment.