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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址