moq

package
v0.0.0-...-c45c141 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: MIT Imports: 12 Imported by: 1

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 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