forked from palletone/go-palletone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gomockgen.sh
executable file
·9 lines (9 loc) · 1003 Bytes
/
gomockgen.sh
1
2
3
4
5
6
7
8
9
GO111MODULE=off go get github.com/golang/mock/gomock
go install github.com/golang/mock/mockgen
cd $GOPATH/src/github.com/palletone/go-palletone
mockgen -source=./dag/interface.go -destination=./dag/mock/dag_mock.go -package=mock
mockgen -source=./txspool/interface.go -destination=./txspool/txpool_mock.go -package=txspool -self_package="github.com/palletone/go-palletone/txspool"
mockgen -source=./ptn/mediator_connection.go -destination=./ptn/mediator_connection_mock.go -package=ptn
mockgen -source=./contracts/shim/interfaces_stable.go -destination=./contracts/shim/interfaces_stable_mock.go -package=shim -self_package="github.com/palletone/go-palletone/contracts/shim"
mockgen -source=./tokenengine/interface.go -destination=./tokenengine/api_mock.go -package=tokenengine -self_package="github.com/palletone/go-palletone/tokenengine"
mockgen -source=./dag/rwset/dependency.go -destination=./dag/rwset/dependency_mock.go -package=rwset -self_package="github.com/palletone/go-palletone/dag/rwset"