Versions in this module Expand all Collapse all v0 v0.3.1 Sep 19, 2017 Changes in this version + type RunFunc func(prog string, newargs []string, outW, errW io.Writer, dir string, env []string) error + type TestCase struct + Commands [][]string + ErrorExpected string + GopathInitial map[string]string + InitPath string + VendorFinal []string + VendorInitial map[string]string + func NewTestCase(t *testing.T, dir, name string) *TestCase + func (tc *TestCase) CompareError(err error, stderr string) + func (tc *TestCase) CompareFile(goldenPath, working string) + func (tc *TestCase) CompareOutput(stdout string) + func (tc *TestCase) CompareVendorPaths(gotVendorPaths []string) + func (tc *TestCase) InitialPath() string + func (tc *TestCase) UpdateFile(goldenPath, workingPath string) + func (tc *TestCase) WriteFile(src string, content string) error + type TestProject struct + func NewTestProject(t *testing.T, initPath, wd string, externalProc bool, run RunFunc) *TestProject + func (p *TestProject) Cleanup() + func (p *TestProject) CompareImportPaths() + func (p *TestProject) CopyTree(src string) + func (p *TestProject) DoRun(args []string) error + func (p *TestProject) GetImportPaths() []string + func (p *TestProject) GetStderr() string + func (p *TestProject) GetStdout() string + func (p *TestProject) GetVendorGit(ip string) + func (p *TestProject) GetVendorPaths() []string + func (p *TestProject) Must(err error) + func (p *TestProject) Path(args ...string) string + func (p *TestProject) ProjPath(args ...string) string + func (p *TestProject) RecordImportPaths() + func (p *TestProject) RunGit(dir string, args ...string) + func (p *TestProject) RunGo(args ...string) + func (p *TestProject) Setenv(name, val string) + func (p *TestProject) TempDir(args ...string) + func (p *TestProject) TempProjDir(args ...string) + func (p *TestProject) VendorPath(args ...string) string