Skip to content

Commit

Permalink
make: Add generate-mocks target (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdamian authored Jul 6, 2022
1 parent cbf8772 commit f7dd338
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ generate-test-data: ## generate data for types decode test
test-types-decode: ## run tests for types decode
@go test -tags=types_test ./types/test/...

generate-mocks: ## generate mocks
@docker run -v `pwd`:/app -w /app --entrypoint /bin/sh vektra/mockery:v2.13.0-beta.1 -c 'go generate ./...'

help: ## shows this help
@sed -ne '/@sed/!s/## //p' $(MAKEFILE_LIST)

Expand Down
2 changes: 1 addition & 1 deletion rpc/author/author.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:generate mockery --name Author
//go:generate mockery --name Author --filename author.go

package author

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion rpc/beefy/beefy.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:generate mockery --name Beefy
//go:generate mockery --name Beefy --filename beefy.go

package beefy

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion rpc/chain/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:generate mockery --name Chain
//go:generate mockery --name Chain --filename chain.go

package chain

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion rpc/mmr/mmr.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:generate mockery --name MMR
//go:generate mockery --name MMR --filename mmr.go

package mmr

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion rpc/offchain/offchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:generate mockery --name Offchain
//go:generate mockery --name Offchain --filename offchain.go

package offchain

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion rpc/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:generate mockery --name State
//go:generate mockery --name State --filename state.go

package state

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion rpc/system/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:generate mockery --name System
//go:generate mockery --name System --filename system.go

package system

Expand Down

0 comments on commit f7dd338

Please sign in to comment.