command
Version:
v0.0.0-...-79b2278
Opens a new window with list of versions in this module.
Published: May 5, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Mocking
Example: https://github.com/golang/mock
$ go install github.com/golang/mock/mockgen@v1.6.0
Two modes:
- source (source file)
- reflect (an import path, and a comma-separated list of symbols.)
Source mode generates mock interfaces from a source file. It is enabled by
using the -source flag.
$ mockgen \
--source=foo.go \
--destination=mock_test.go \
--package=async_test
Documentation
¶
Package mock_main is a generated GoMock package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.