Registry / testing / golang-mock

golang-mock

JSON →
library1.6.0gogounverified

Package mock provides a mocking framework for Go interfaces.

go get github.com/golang/mock
INSTALL
IMPORT
SIG · GOLANG-MOCK
G
golang-mock
testinggov1.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gomock
github.com/golang/mock/gomock

Create a new mock controller.

package main import ( "github.com/golang/mock/gomock" ) func main() { ctrl := gomock.NewController(nil) defer ctrl.Finish() }
Debug
Known issues
breakingThis package is deprecated in favor of go.uber.org/mock.
fix
Migrate to go.uber.org/mock for continued support.
affects: >=1.6.0
Upgrade
Version history
1.6.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
golang-mock — go get golang-mock · libregistry