moq

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mocker

type Mocker struct {
	// contains filtered or unexported fields
}

Mocker can generate mock structs.

func New

func New(src, packageName, tmpDir string) (*Mocker, error)

New makes a new Mocker for the specified package directory.

func (*Mocker) Mock

func (m *Mocker) Mock(w io.Writer, name ...string) error

Mock generates a mock for the specified interface name.

Directories

Path Synopsis
testpackages
dotimport
Package dotimport addresses issue 21.
Package dotimport addresses issue 21.

Jump to

Keyboard shortcuts

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