Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
test: Cleanup detritus, fix doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sdboyer committed Jul 24, 2018
1 parent ee0c846 commit baebed0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 2 additions & 0 deletions internal/test/integration/testcase.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ func (tc *TestCase) CompareError(err error, stderr string) {
}
}

// CompareCmdFailure checks to see if the failure/success (in the sense of an
// exit code) was as expected by the test fixture.
func (tc *TestCase) CompareCmdFailure(gotFail bool) {
if gotFail == tc.ShouldFail {
return
Expand Down
7 changes: 0 additions & 7 deletions internal/test/integration/testproj.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ type TestProject struct {
origWd string
stdout bytes.Buffer
stderr bytes.Buffer
failed bool
run RunFunc
}

Expand Down Expand Up @@ -162,12 +161,6 @@ func (p *TestProject) GetStderr() string {
return p.stderr.String()
}

// Indicates if the command specified in the test run failed, whether or not
// there was error output.
func (p *TestProject) Failed() bool {
return p.failed
}

// GetVendorGit populates the initial vendor directory for a test project.
func (p *TestProject) GetVendorGit(ip string) {
parse := strings.Split(ip, "/")
Expand Down

0 comments on commit baebed0

Please sign in to comment.