mirror of
https://github.com/DATA-DOG/go-sqlmock.git
synced 2025-03-27 21:28:51 +02:00
fixes travis build with gofmt
This commit is contained in:
parent
b2ca44a80b
commit
d335ff60c1
@ -8,7 +8,7 @@ go:
|
|||||||
- 1.6.x
|
- 1.6.x
|
||||||
- 1.7.x
|
- 1.7.x
|
||||||
- 1.8.x
|
- 1.8.x
|
||||||
# - tip # sadly fails most of thw times
|
# - tip # sadly fails most of the times
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- go vet
|
- go vet
|
||||||
|
@ -367,15 +367,11 @@ func TestUnorderedPreparedQueryExecutions(t *testing.T) {
|
|||||||
mock.ExpectPrepare("SELECT (.+) FROM articles WHERE id = ?").
|
mock.ExpectPrepare("SELECT (.+) FROM articles WHERE id = ?").
|
||||||
ExpectQuery().
|
ExpectQuery().
|
||||||
WithArgs(5).
|
WithArgs(5).
|
||||||
WillReturnRows(
|
WillReturnRows(NewRows([]string{"id", "title"}).FromCSVString("5,The quick brown fox"))
|
||||||
NewRows([]string{"id", "title"}).FromCSVString("5,The quick brown fox"),
|
|
||||||
)
|
|
||||||
mock.ExpectPrepare("SELECT (.+) FROM authors WHERE id = ?").
|
mock.ExpectPrepare("SELECT (.+) FROM authors WHERE id = ?").
|
||||||
ExpectQuery().
|
ExpectQuery().
|
||||||
WithArgs(1).
|
WithArgs(1).
|
||||||
WillReturnRows(
|
WillReturnRows(NewRows([]string{"id", "title"}).FromCSVString("1,Betty B."))
|
||||||
NewRows([]string{"id", "title"}).FromCSVString("1,Betty B."),
|
|
||||||
)
|
|
||||||
|
|
||||||
var id int
|
var id int
|
||||||
var name string
|
var name string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user