generate

package
Version: v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2014 License: Apache-2.0, 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.

Source Files

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
t or T : Toggle theme light dark auto
y or Y : Canonical URL