golang / mock

GoMock is a mocking framework for the Go programming language.
Apache License 2.0
9.26k stars 608 forks source link

mockgen only create file and package, but not create interface and struct #670

Closed cccccccccy closed 1 year ago

cccccccccy commented 1 year ago
  1. ... mockgen --source model/dao/rpc/base.go --destination mock/mock_base.go only create: // Code generated by MockGen. DO NOT EDIT. // Source: model/dao/rpc/base.go

// Package mock_rpc is a generated GoMock package. package mock_rpc

but when i use mockgen with other resp, it works correctly.

codyoss commented 1 year ago

@cccccccccy Can you please provide code to reproduce?

codyoss commented 1 year ago

Closing due to lack of response.