use named field

This commit is contained in:
Yasuhiro Matsumoto 2017-03-05 00:33:20 +09:00
parent acf4ae4429
commit 2fc807f668
1 changed files with 10 additions and 10 deletions

View File

@ -32,19 +32,19 @@ var db *DB
var testTables = []string{"foo", "bar", "t", "bench"} var testTables = []string{"foo", "bar", "t", "bench"}
var tests = []testing.InternalTest{ var tests = []testing.InternalTest{
{"TestBlobs", TestBlobs}, {Name: "TestBlobs", F: TestBlobs},
{"TestManyQueryRow", TestManyQueryRow}, {Name: "TestManyQueryRow", F: TestManyQueryRow},
{"TestTxQuery", TestTxQuery}, {Name: "TestTxQuery", F: TestTxQuery},
{"TestPreparedStmt", TestPreparedStmt}, {Name: "TestPreparedStmt", F: TestPreparedStmt},
} }
var benchmarks = []testing.InternalBenchmark{ var benchmarks = []testing.InternalBenchmark{
{"BenchmarkExec", BenchmarkExec}, {Name: "BenchmarkExec", F: BenchmarkExec},
{"BenchmarkQuery", BenchmarkQuery}, {Name: "BenchmarkQuery", F: BenchmarkQuery},
{"BenchmarkParams", BenchmarkParams}, {Name: "BenchmarkParams", F: BenchmarkParams},
{"BenchmarkStmt", BenchmarkStmt}, {Name: "BenchmarkStmt", F: BenchmarkStmt},
{"BenchmarkRows", BenchmarkRows}, {Name: "BenchmarkRows", F: BenchmarkRows},
{"BenchmarkStmtRows", BenchmarkStmtRows}, {Name: "BenchmarkStmtRows", F: BenchmarkStmtRows},
} }
// RunTests runs the SQL test suite // RunTests runs the SQL test suite