mock: github.com/golang/mock

Directories

PathSynopsis
gomockPackage gomock is a mock framework for Go.
gomock/internal/mock_gomockPackage mock_gomock is a generated GoMock package.
mockgenMockGen generates mock implementations of Go interfaces.
mockgen/internal/tests/aux_imports_embedded_interfacePackage bugreport is a generated GoMock package.
mockgen/internal/tests/aux_imports_embedded_interface/faux
mockgen/internal/tests/copyright_filePackage empty_interface is a generated GoMock package.
mockgen/internal/tests/custom_package_name/client/v1
mockgen/internal/tests/custom_package_name/greeter
mockgen/internal/tests/custom_package_name/validator
mockgen/internal/tests/dot_importsgo:generate mockgen -package dot_imports -destination mock.go -source input.go
mockgen/internal/tests/empty_interfacego:generate mockgen -package empty_interface -destination mock.go -source input.go
mockgen/internal/tests/generated_identifier_conflictPackage bugreport is a generated GoMock package.
mockgen/internal/tests/import_sourcePackage mock_source is a generated GoMock package.
mockgen/internal/tests/import_source/definitiongo:generate mockgen -destination ../source_mock.go -source=source.go go:generate mockgen -package source -destination source_mock.go -source=source.go
mockgen/internal/tests/internal_pkggo:generate mockgen -destination subdir/internal/pkg/reflect_output/mock.go github.com/golang/mock/mockgen/internal/tests/internal_pkg/subdir/internal/pkg Intf go:generate mockgen -source subdir/internal/pkg/input.go -destination subdir/internal/pkg/source_output/mock.go
mockgen/internal/tests/mock_in_test_package
mockgen/internal/tests/test_package
mockgen/internal/tests/unexported_methodPackage bugreport is a generated GoMock package.
mockgen/internal/tests/vendor_depPackage vendor_dep is a generated GoMock package.
mockgen/internal/tests/vendor_dep/source_mock_packagePackage mock_vendor_dep is a generated GoMock package.
mockgen/internal/tests/vendor_pkgPackage vendor_pkg is a generated GoMock package.
mockgen/modelPackage model contains the data model necessary for generating mock implementations.
sampleAn example package with an interface.
sample/concurrentPackage concurrent demonstrates how to use gomock with goroutines.
sample/concurrent/mockPackage mock_concurrent is a generated GoMock package.
sample/imp1
sample/imp2
sample/imp3
sample/imp4
sample/mock_userPackage mock_sample is a generated GoMock package.

Updated 2020-01-20. Refresh now. Tools for package owners.