mockery

package
v0.0.0-...-0e33e00 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2016 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotInterface = errors.New("expression not an interface")
View Source
var ErrNotSetup = errors.New("not setup")

Functions

This section is empty.

Types

type Generator

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

func NewGenerator

func NewGenerator(iface *Interface) *Generator

func (*Generator) Generate

func (g *Generator) Generate() error

func (*Generator) GenerateIPPrologue

func (g *Generator) GenerateIPPrologue()

func (*Generator) GeneratePrologue

func (g *Generator) GeneratePrologue(pkg string)

func (*Generator) GeneratePrologueNote

func (g *Generator) GeneratePrologueNote(note string)

func (*Generator) Write

func (g *Generator) Write(w io.Writer) error

type Interface

type Interface struct {
	Name string
	Path string
	File *ast.File
	Type *ast.InterfaceType
}

type Parser

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

func NewParser

func NewParser() *Parser

func (*Parser) Find

func (p *Parser) Find(name string) (*Interface, error)

func (*Parser) Interfaces

func (p *Parser) Interfaces() []*Interface

func (*Parser) Parse

func (p *Parser) Parse(path string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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