Skip to content

Commit

Permalink
testscript: make it compile under Go 1.10
Browse files Browse the repository at this point in the history
Making it compile under earlier versions than 1.10 is a bit
harder, so punt for now.
  • Loading branch information
rogpeppe committed Oct 4, 2018
1 parent 585cf0b commit 39c6f49
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion testscript/exe.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,14 @@ func (nopTestDeps) WriteProfileTo(name string, w io.Writer, debug int) error {
func (nopTestDeps) ImportPath() string {
return ""
}

func (nopTestDeps) StartTestLog(w io.Writer) {}

func (nopTestDeps) StopTestLog() error {
return nil
}

// Note: WriteHeapProfile is not needed for Go 1.10.
func (nopTestDeps) WriteHeapProfile(io.Writer) error {
// Not needed for Go 1.10.
return nil
}

0 comments on commit 39c6f49

Please sign in to comment.