generate

package
v0.0.0-...-e94d794 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2015 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Overview

Package generate implements code generation for mock classes. This is an implementation detail of the createmock command, which you probably want to use directly instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMockSource

func GenerateMockSource(
	w io.Writer,
	outputPkgPath string,
	interfaces []reflect.Type) (err error)

Given a set of interfaces to mock, write out source code suitable for inclusion in a package with the supplied full package path containing mock implementations of those interfaces.

Types

This section is empty.

Jump to

Keyboard shortcuts

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