commit
774db4a8aa
3 changed files with 11 additions and 3 deletions
|
@ -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()))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue