Skip to content

Commit 0570286

Browse files
committed
rows: move tests to versioned driver test files
1 parent 1820148 commit 0570286

File tree

3 files changed

+18
-27
lines changed

3 files changed

+18
-27
lines changed

driver_go18_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@ var (
3535
_ driver.StmtQueryContext = &mysqlStmt{}
3636
)
3737

38+
// Ensure that all the driver interfaces are implemented
39+
var (
40+
_ driver.RowsColumnTypeDatabaseTypeName = &binaryRows{}
41+
_ driver.RowsColumnTypeDatabaseTypeName = &textRows{}
42+
_ driver.RowsColumnTypeNullable = &binaryRows{}
43+
_ driver.RowsColumnTypeNullable = &textRows{}
44+
_ driver.RowsColumnTypeScanType = &binaryRows{}
45+
_ driver.RowsColumnTypeScanType = &textRows{}
46+
_ driver.RowsNextResultSet = &binaryRows{}
47+
_ driver.RowsNextResultSet = &textRows{}
48+
)
49+
3850
func TestMultiResultSet(t *testing.T) {
3951
type result struct {
4052
values [][]int

driver_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ import (
2727
"time"
2828
)
2929

30+
// Ensure that all the driver interfaces are implemented
31+
var (
32+
_ driver.Rows = &binaryRows{}
33+
_ driver.Rows = &textRows{}
34+
)
35+
3036
var (
3137
user string
3238
pass string

rows_test.go

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)