moq

package
v2.0.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 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 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.

Jump to

Keyboard shortcuts

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