diff options
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | context.go | 4 | ||||
-rw-r--r-- | gotestmain/gotestmain.go | 8 |
3 files changed, 11 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 72b7f79..3397bfd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,8 @@ language: go go: - - 1.8.3 - 1.9 + - "1.10" cache: directories: @@ -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())) } } } diff --git a/gotestmain/gotestmain.go b/gotestmain/gotestmain.go index 8f914c0..d1a6904 100644 --- a/gotestmain/gotestmain.go +++ b/gotestmain/gotestmain.go @@ -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) |