Fix build on Go 1.9

Change-Id: Ie471f396b22cd88104b4f05dbcf3677c7ffd5f08
This commit is contained in:
Dan Willemsen 2017-07-24 20:28:40 -07:00
parent f94ab1e486
commit 53d563facb
2 changed files with 5 additions and 0 deletions

View file

@ -2,6 +2,7 @@ language: go
go:
- 1.8.3
- 1.9rc1
cache:
directories:

View file

@ -156,6 +156,10 @@ func (matchString) WriteProfileTo(string, io.Writer, int) error {
panic("shouldn't get here")
}
func (matchString) ImportPath() string {
return "{{.Package}}"
}
func main() {
{{if .MainStartTakesInterface}}
m := testing.MainStart(matchString{}, t, nil, nil)