gomock

command module
v0.0.0-...-16700a0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2020 License: MIT Imports: 14 Imported by: 0

README

Usage: gomock [-h] [-d value] [-p value] <package> <interface>
Generates mocks for a go interface. 

<package>
	Package name or path to the package of interface to mock

<interface>
	Name of the interface to mock

Examples:
    gomock hash Hash
    gomock golang.org/x/tools/godoc/analysis Link 

    gomock --package testutils io Reader
    gomock --directory $GOPATH/src/github.com/pedrogameiro/gomock hash Hash

 -d, --directory=value
             package source directory, useful for vendored code
 -h, --help  Help
 -p, --package=value
             package name
go get -u github.com/pedrogameiro/gomock

original forked code https://github.com/josharian/impl

Documentation

Overview

gomock generates method stubs for implementing an interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL