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

Commit baebed0

Browse files
committed
test: Cleanup detritus, fix doc comments
1 parent ee0c846 commit baebed0

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

internal/test/integration/testcase.go

+2
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ func (tc *TestCase) CompareError(err error, stderr string) {
174174
}
175175
}
176176

177+
// CompareCmdFailure checks to see if the failure/success (in the sense of an
178+
// exit code) was as expected by the test fixture.
177179
func (tc *TestCase) CompareCmdFailure(gotFail bool) {
178180
if gotFail == tc.ShouldFail {
179181
return

internal/test/integration/testproj.go

-7
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ type TestProject struct {
3737
origWd string
3838
stdout bytes.Buffer
3939
stderr bytes.Buffer
40-
failed bool
4140
run RunFunc
4241
}
4342

@@ -162,12 +161,6 @@ func (p *TestProject) GetStderr() string {
162161
return p.stderr.String()
163162
}
164163

165-
// Indicates if the command specified in the test run failed, whether or not
166-
// there was error output.
167-
func (p *TestProject) Failed() bool {
168-
return p.failed
169-
}
170-
171164
// GetVendorGit populates the initial vendor directory for a test project.
172165
func (p *TestProject) GetVendorGit(ip string) {
173166
parse := strings.Split(ip, "/")

0 commit comments

Comments
 (0)