generate

package
v0.0.0-...-f0190a3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(config lib.Config)

Run executes the command.

Types

type MockFinder

type MockFinder struct {
	// contains filtered or unexported fields
}

MockFinder finds objects that can be mocked.

func NewMockFinder

func NewMockFinder() *MockFinder

NewMockFinder constructor.

type Oracle

type Oracle struct {
	// contains filtered or unexported fields
}

Oracle parses Go projects, looking for interfaces to mock.

func NewOracle

func NewOracle(config lib.Config) *Oracle

NewOracle creates a new oracle.

func (*Oracle) GenerateMocks

func (r *Oracle) GenerateMocks(project *lib.Project)

GenerateMocks generate mocks for the project

func (*Oracle) ScanProject

func (r *Oracle) ScanProject(project *lib.Project)

ScanProject walks the project directory, indexing valid Go source code

func (*Oracle) TypeCheckProject

func (r *Oracle) TypeCheckProject(project *lib.Project)

TypeCheckProject type-checks Go source code.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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