Back to godoc.org
github.com/golang/mock

Directory github.com/golang/mock

v1.4.4
Latest Go to latest

The latest major version is .

Published: Jul 28, 2020 | License: Apache-2.0 | Module: github.com/golang/mock
Path Synopsis
gomock Package gomock is a mock framework for Go.
gomock/internal/mock_gomock Package mock_gomock is a generated GoMock package.
mockgen MockGen generates mock implementations of Go interfaces.
mockgen/internal/tests/aux_imports_embedded_interface Package bugreport is a generated GoMock package.
mockgen/internal/tests/aux_imports_embedded_interface/faux
mockgen/internal/tests/copyright_file Package 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_imports go:generate mockgen -package dot_imports -destination mock.go -source input.go Package dot_imports is a generated GoMock package.
mockgen/internal/tests/empty_interface go:generate mockgen -package empty_interface -destination mock.go -source input.go Package empty_interface is a generated GoMock package.
mockgen/internal/tests/generated_identifier_conflict Package bugreport is a generated GoMock package.
mockgen/internal/tests/import_source Package mock_source is a generated GoMock package.
mockgen/internal/tests/import_source/definition go:generate mockgen -destination ../source_mock.go -source=source.go go:generate mockgen -package source -destination source_mock.go -source=source.go Package source is a generated GoMock package.
mockgen/internal/tests/internal_pkg go: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/internal_pkg/subdir/internal/pkg
mockgen/internal/tests/internal_pkg/subdir/internal/pkg/reflect_output Package mock_pkg is a generated GoMock package.
mockgen/internal/tests/internal_pkg/subdir/internal/pkg/source_output Package mock_pkg is a generated GoMock package.
mockgen/internal/tests/mock_in_test_package
mockgen/internal/tests/performance/big_interface
mockgen/internal/tests/self_package Package core is a generated GoMock package.
mockgen/internal/tests/test_package
mockgen/internal/tests/unexported_method Package bugreport is a generated GoMock package.
mockgen/internal/tests/vendor_dep Package vendor_dep is a generated GoMock package.
mockgen/internal/tests/vendor_dep/source_mock_package Package mock_vendor_dep is a generated GoMock package.
mockgen/internal/tests/vendor_pkg Package vendor_pkg is a generated GoMock package.
mockgen/model Package model contains the data model necessary for generating mock implementations.
sample An example package with an interface.
sample/concurrent Package concurrent demonstrates how to use gomock with goroutines.
sample/concurrent/mock Package mock_concurrent is a generated GoMock package.
sample/imp1
sample/imp2
sample/imp3
sample/imp4
sample/mock_user Package mock_sample is a generated GoMock package.