generate

package
v0.0.0-...-6d19cf7 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2014 License: MIT, Apache-2.0 Imports: 10 Imported by: 0

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, pkg string, interfaces []reflect.Type) error

Given a set of interfaces to mock, write out source code for a package named `pkg` that contains mock implementations of those interfaces.

Types

This section is empty.

Directories

Path Synopsis
complicated_pkg
Package complicated_pkg contains an interface with lots of interesting cases, for use in integration testing.
Package complicated_pkg contains an interface with lots of interesting cases, for use in integration testing.
renamed_pkg
A package that calls itself something different than its package path would have you believe.
A package that calls itself something different than its package path would have you believe.

Jump to

Keyboard shortcuts

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