mirror of
https://github.com/DATA-DOG/go-sqlmock.git
synced 2025-02-15 13:33:26 +02:00
let travis ci test it
This commit is contained in:
parent
af59e07d27
commit
b89aa3ac1e
9
.travis.yml
Normal file
9
.travis.yml
Normal file
@ -0,0 +1,9 @@
|
||||
language: go
|
||||
go:
|
||||
- 1.1
|
||||
- 1.2
|
||||
- release
|
||||
- tip
|
||||
|
||||
script:
|
||||
- go test -v ./...
|
@ -1,3 +1,5 @@
|
||||
[![Build Status](https://travis-ci.org/DATA-DOG/go-sqlmock.png)](https://travis-ci.org/DATA-DOG/go-sqlmock)
|
||||
|
||||
# Sql driver mock for Golang
|
||||
|
||||
This is a **mock** driver as **database/sql/driver** which is very flexible and pragmatic to
|
||||
|
@ -177,7 +177,7 @@ func TestUnexpectedOperations(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestWrongUnexpectations(t *testing.T) {
|
||||
func TestWrongExpectations(t *testing.T) {
|
||||
db, err := sql.Open("mock", "")
|
||||
if err != nil {
|
||||
t.Errorf("An error '%s' was not expected when opening a stub database connection", err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user