Skip to content

Commit

Permalink
cover: Fix build for 1.10
Browse files Browse the repository at this point in the history
golang 1.10 requires a `TestDeps` to implement `StartTestLog()`
and `StopTestLog()`.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
  • Loading branch information
jodh-intel committed Mar 13, 2018
1 parent d45792f commit 7cf24e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/cover/cover.go
Expand Up @@ -47,6 +47,8 @@ type dummyTestDeps func(pat, str string) (bool, error)
func (d dummyTestDeps) MatchString(pat, str string) (bool, error) { return false, nil }
func (d dummyTestDeps) StartCPUProfile(io.Writer) error { return nil }
func (d dummyTestDeps) StopCPUProfile() {}
func (f dummyTestDeps) StartTestLog(w io.Writer) {}
func (f dummyTestDeps) StopTestLog() error { return nil }
func (d dummyTestDeps) WriteHeapProfile(io.Writer) error { return nil }
func (d dummyTestDeps) WriteProfileTo(string, io.Writer, int) error { return nil }
func (f dummyTestDeps) ImportPath() string { return "" }
Expand Down

0 comments on commit 7cf24e2

Please sign in to comment.