mockery

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: MPL-2.0, MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mockery provides a limited-feature runner that uses the vendored instance instead of executing a process.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(c Config) (string, error)

Run is a substitute for the full CLI that uses the vendored version and only the limited set of required options. It is an abbreviated cmd/mockery/mockery.go.

Types

type Config

type Config struct {
	InPackage bool
	Name      string
	Dir       string
}

Config defines the limited set of options, usually capture from the console, that are used in this command.

type StreamProvider

type StreamProvider struct {
	W io.Writer
}

StreamProvider is just mockery.StdoutStreamProvider with a variable writer.

func (*StreamProvider) GetWriter

func (s *StreamProvider) GetWriter(iface *mockery.Interface) (io.Writer, error, mockery.Cleanup)

GetWriter returns the configured writer.

Jump to

Keyboard shortcuts

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