lib

package
v0.0.0-...-97541d0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2013 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenMockPkg

func GenMockPkg(srcPath, dstRoot, name string) (map[string]bool, error)

func GetImports

func GetImports(path string, tests bool) (map[string]bool, error)

func GetOutput

func GetOutput(name string, args ...string) (string, error)

func LinkPkg

func LinkPkg(srcPath, dstRoot, name string) (map[string]bool, error)

func MakeMock

func MakeMock(srcPath, dstPath string) error

MakeMock writes a mock version of the package found at srcPath into dstPath. If dstPath already exists, bad things will probably happen.

func MockImports

func MockImports(src, dst string, names map[string]string) error

func MockStandard

func MockStandard(srcRoot, dstRoot, name string) error

func NewRewriter

func NewRewriter(w io.Writer) *rewriter

Types

type Context

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

func NewContext

func NewContext() (*Context, error)

func (*Context) AddPackage

func (c *Context) AddPackage(pkgName string) (string, error)

func (*Context) Chdir

func (c *Context) Chdir(pkg string) error

func (*Context) Close

func (c *Context) Close() error

func (*Context) KeepWork

func (c *Context) KeepWork()

func (*Context) LinkPkg

func (c *Context) LinkPkg(pkg string) error

func (*Context) Run

func (c *Context) Run(command string, args ...string) error

Jump to

Keyboard shortcuts

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