Skip to content

Commit

Permalink
make mock fix (#12328)
Browse files Browse the repository at this point in the history
for #11113
  • Loading branch information
AskAlexSharov authored Oct 19, 2024
1 parent 2f9a3a3 commit 617a3de
Show file tree
Hide file tree
Showing 46 changed files with 1,176 additions and 937 deletions.
12 changes: 4 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -211,21 +211,17 @@ clean:
devtools:
# Notice! If you adding new binary - add it also to tools.go file
$(GOBUILD) -o $(GOBIN)/gencodec github.com/fjl/gencodec
$(GOBUILD) -o $(GOBIN)/mockgen go.uber.org/mock/mockgen
$(GOBUILD) -o $(GOBIN)/abigen ./cmd/abigen
@type "npm" 2> /dev/null || echo 'Please install node.js and npm'
@type "solc" 2> /dev/null || echo 'Please install solc'
@type "protoc" 2> /dev/null || echo 'Please install protoc'

## mocks: generate test mocks
mocks: mocks-clean
@cd erigon-lib && $(MAKE) mocks
$(GOBUILD) -o $(GOBIN)/mockgen go.uber.org/mock/mockgen
PATH="$(GOBIN):$(PATH)" go generate -run "mockgen" ./...

## mocks-clean: cleans all generated test mocks
mocks-clean:
mocks:
rm -f $(GOBIN)/mockgen
$(GOBUILD) -o "$(GOBIN)/mockgen" go.uber.org/mock/mockgen
grep -r -l --exclude-dir="erigon-lib" --exclude-dir="tests" --exclude-dir="*$(GOBINREL)*" "^// Code generated by MockGen. DO NOT EDIT.$$" . | xargs rm -r
PATH="$(GOBIN):$(PATH)" go generate -run "mockgen" ./...

## solc: generate all solidity contracts
solc:
Expand Down
834 changes: 505 additions & 329 deletions cl/abstract/mock_services/beacon_state_mutator_mock.go

Large diffs are not rendered by default.

41 changes: 21 additions & 20 deletions cl/abstract/mock_services/beacon_state_reader_mock.go

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

17 changes: 9 additions & 8 deletions cl/aggregation/mock_services/aggregation_pool_mock.go

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

33 changes: 17 additions & 16 deletions cl/beacon/builder/mock_services/builder_client_mock.go

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

9 changes: 5 additions & 4 deletions cl/beacon/synced_data/mock_services/synced_data_mock.go

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

Loading

0 comments on commit 617a3de

Please sign in to comment.