1
0
mirror of https://github.com/DATA-DOG/go-sqlmock.git synced 2025-02-21 19:06:45 +02:00

update travis

This commit is contained in:
gedi 2015-01-17 17:10:40 +02:00
parent 8b39a1b05d
commit 5b6166bfbf
3 changed files with 14 additions and 10 deletions

View File

@ -1,12 +1,16 @@
language: go
go:
- 1.1
- 1.2
- 1.3
- release
- tip
- 1.2
- 1.3
- 1.4
- release
- tip
script:
- (go version | grep "version go1.1") || go get code.google.com/p/go.tools/cmd/vet
- go vet ./...
- go test -v ./...
- go get github.com/kisielk/errcheck
- go get ./...
- go test -v ./...
- go test -race ./...
- errcheck github.com/DATA-DOG/go-sqlmock

View File

@ -329,6 +329,7 @@ rs := sqlmock.ExpectPrepare().
## Documentation
Visit [godoc](http://godoc.org/github.com/DATA-DOG/go-sqlmock)
See **.travis.yml** for supported **go** versions
## Changes

View File

@ -94,8 +94,7 @@ func New() (db *sql.DB, err error) {
return
}
// ensure open connection, otherwise Close does not assert expectations
db.Ping()
return
return db, db.Ping()
}
// ExpectBegin expects transaction to be started