Merge pull request #201 from danw/go1.10

Support go1.10
This commit is contained in:
Dan Willemsen 2018-02-27 10:50:20 -08:00 committed by GitHub
commit 774db4a8aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 3 deletions

View file

@ -1,8 +1,8 @@
language: go
go:
- 1.8.3
- 1.9
- "1.10"
cache:
directories:

View file

@ -1097,7 +1097,7 @@ func getLocalStringListFromScope(scope *parser.Scope, v string) ([]string, scann
Pos: assignment.EqualsPos,
}
default:
panic(fmt.Errorf("unknown value type: %d", assignment.Value.Type))
panic(fmt.Errorf("unknown value type: %d", assignment.Value.Type()))
}
}
}
@ -1115,7 +1115,7 @@ func getStringFromScope(scope *parser.Scope, v string) (string, scanner.Position
Pos: assignment.EqualsPos,
}
default:
panic(fmt.Errorf("unknown value type: %d", assignment.Value.Type))
panic(fmt.Errorf("unknown value type: %d", assignment.Value.Type()))
}
}
}

View file

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