Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangxue committed Feb 2, 2018
1 parent 387a4b1 commit ea984d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ func TestDB_Open(t *testing.T) {
if assert.NotNil(t, db) {
assert.NotNil(t, db.sqlDB)
assert.NotNil(t, db.FieldMapper)
db2 := db.Clone()
assert.Equal(t, db.driverName, db2.driverName)
}

_, err = Open("xyz", TestDSN)
Expand Down

0 comments on commit ea984d8

Please sign in to comment.