Versions in this module Expand all Collapse all v0 v0.1.0 May 27, 2017 Changes in this version + const ProjectRoot + var ExeSuffix string + var PrintLogs *bool = flag.Bool("logs", false, "log stdin/stdout of test commands") + var UpdateGolden *bool = flag.Bool("update", false, "update golden files") + func NeedsExternalNetwork(t *testing.T) + func NeedsGit(t *testing.T) + type Helper struct + func NewHelper(t *testing.T) *Helper + func (h *Helper) Cd(dir string) + func (h *Helper) Cleanup() + func (h *Helper) DoRun(args []string) error + func (h *Helper) Exist(path string) bool + func (h *Helper) GetCommit(repo string) string + func (h *Helper) GetFile(path string) io.ReadCloser + func (h *Helper) GetTestFile(src string) io.ReadCloser + func (h *Helper) GetTestFileString(src string) string + func (h *Helper) Must(err error) + func (h *Helper) MustExist(path string) + func (h *Helper) MustNotExist(path string) + func (h *Helper) Parallel() + func (h *Helper) Path(name string) string + func (h *Helper) ReadLock() string + func (h *Helper) ReadManifest() string + func (h *Helper) Run(args ...string) + func (h *Helper) RunGit(dir string, args ...string) + func (h *Helper) RunGo(args ...string) + func (h *Helper) Setenv(name, val string) + func (h *Helper) ShouldExist(path string) error + func (h *Helper) ShouldNotExist(path string) error + func (h *Helper) TempCopy(dest, src string) + func (h *Helper) TempDir(path string) + func (h *Helper) TempFile(path, contents string) + func (h *Helper) WriteTestFile(src string, content string) error + type IntegrationTestCase struct + Commands [][]string + ErrorExpected string + GopathInitial map[string]string + InitPath string + VendorFinal []string + VendorInitial map[string]string + func NewTestCase(t *testing.T, name, test_dir, wd string) *IntegrationTestCase + func (tc *IntegrationTestCase) Cleanup() + func (tc *IntegrationTestCase) CompareError(err error, stderr string) + func (tc *IntegrationTestCase) CompareFile(goldenPath, working string) + func (tc *IntegrationTestCase) CompareOutput(stdout string) + func (tc *IntegrationTestCase) CompareVendorPaths(gotVendorPaths []string) + func (tc *IntegrationTestCase) InitialPath() string + func (tc *IntegrationTestCase) WriteFile(src string, content string) error + type IntegrationTestProject struct + func NewTestProject(t *testing.T, initPath, wd string, externalProc bool, run RunFunc) *IntegrationTestProject + func (p *IntegrationTestProject) Cleanup() + func (p *IntegrationTestProject) CompareImportPaths() + func (p *IntegrationTestProject) CopyTree(src string) + func (p *IntegrationTestProject) DoRun(args []string) error + func (p *IntegrationTestProject) GetImportPaths() []string + func (p *IntegrationTestProject) GetStderr() string + func (p *IntegrationTestProject) GetStdout() string + func (p *IntegrationTestProject) GetVendorGit(ip string) + func (p *IntegrationTestProject) GetVendorPaths() []string + func (p *IntegrationTestProject) Must(err error) + func (p *IntegrationTestProject) Path(args ...string) string + func (p *IntegrationTestProject) ProjPath(args ...string) string + func (p *IntegrationTestProject) RecordImportPaths() + func (p *IntegrationTestProject) RunGit(dir string, args ...string) + func (p *IntegrationTestProject) RunGo(args ...string) + func (p *IntegrationTestProject) Setenv(name, val string) + func (p *IntegrationTestProject) TempDir(args ...string) + func (p *IntegrationTestProject) TempProjDir(args ...string) + func (p *IntegrationTestProject) VendorPath(args ...string) string + type RunFunc func(prog string, newargs []string, outW, errW io.Writer, dir string, env []string) error