1
0
mirror of https://github.com/zhashkevych/go-sqlxmock.git synced 2024-11-24 08:12:13 +02:00

fixes travis build with gofmt

This commit is contained in:
gedi 2017-06-02 11:59:07 +03:00
parent b2ca44a80b
commit d335ff60c1
No known key found for this signature in database
GPG Key ID: 56604CDCCC201556
2 changed files with 3 additions and 7 deletions

View File

@ -8,7 +8,7 @@ go:
- 1.6.x
- 1.7.x
- 1.8.x
# - tip # sadly fails most of thw times
# - tip # sadly fails most of the times
script:
- go vet

View File

@ -367,15 +367,11 @@ func TestUnorderedPreparedQueryExecutions(t *testing.T) {
mock.ExpectPrepare("SELECT (.+) FROM articles WHERE id = ?").
ExpectQuery().
WithArgs(5).
WillReturnRows(
NewRows([]string{"id", "title"}).FromCSVString("5,The quick brown fox"),
)
WillReturnRows(NewRows([]string{"id", "title"}).FromCSVString("5,The quick brown fox"))
mock.ExpectPrepare("SELECT (.+) FROM authors WHERE id = ?").
ExpectQuery().
WithArgs(1).
WillReturnRows(
NewRows([]string{"id", "title"}).FromCSVString("1,Betty B."),
)
WillReturnRows(NewRows([]string{"id", "title"}).FromCSVString("1,Betty B."))
var id int
var name string