Skip to content

Commit

Permalink
Add producer mock (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
cw9 authored and Chao Wang committed Jun 7, 2018
1 parent 907e311 commit 830ac18
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/msg/generated/mocks/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// THE SOFTWARE.

// mockgen rules for generating mocks for exported interfaces (reflection mode).
//go:generate sh -c "mockgen -package=producer $PACKAGE/producer Message | mockclean -pkg $PACKAGE/producer -out $GOPATH/src/$PACKAGE/producer/message_mock.go"
//go:generate sh -c "mockgen -package=producer $PACKAGE/producer Message,Producer | mockclean -pkg $PACKAGE/producer -out $GOPATH/src/$PACKAGE/producer/producer_mock.go"
//go:generate sh -c "mockgen -package=proto $PACKAGE/protocol/proto EncodeDecoder | mockclean -pkg $PACKAGE/protocol/proto -out $GOPATH/src/$PACKAGE/protocol/proto/encode_decoder_mock.go"

// mockgen rules for generating mocks for unexported interfaces (file mode).
Expand Down

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

0 comments on commit 830ac18

Please sign in to comment.