Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

benchmark test error #44

Closed
carllhw opened this issue May 16, 2018 · 0 comments · Fixed by #47
Closed

benchmark test error #44

carllhw opened this issue May 16, 2018 · 0 comments · Fixed by #47
Labels

Comments

@carllhw
Copy link

carllhw commented May 16, 2018

after execute go test -v -bench=., got this error message.

goos: darwin
goarch: amd64
pkg: github.com/go-xorm/core
BenchmarkOriQuery-8                  	    1000	   1266147 ns/op
BenchmarkStructQuery-8               	    1000	   1921657 ns/op
BenchmarkStruct2Query-8              	     500	   2829271 ns/op
panic: interface conversion: interface {} is []uint8, not *string

goroutine 2903 [running]:
github.com/go-xorm/core.BenchmarkSliceInterfaceQuery(0xc42055b980)
	/Users/carllhw/Projects/go/src/github.com/go-xorm/core/db_test.go:232 +0x7b2
testing.(*B).runN(0xc42055b980, 0x1)
	/usr/local/Cellar/go/1.10.2/libexec/src/testing/benchmark.go:141 +0xb2
testing.(*B).run1.func1(0xc42055b980)
	/usr/local/Cellar/go/1.10.2/libexec/src/testing/benchmark.go:214 +0x5a
created by testing.(*B).run1
	/usr/local/Cellar/go/1.10.2/libexec/src/testing/benchmark.go:207 +0x80
exit status 2
FAIL	github.com/go-xorm/core	5.919s
@lunny lunny added the testing label Jan 17, 2019
@lunny lunny mentioned this issue Jan 17, 2019
@lunny lunny closed this as completed in #47 Jan 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants