From ea984d8fdf366167caf7fda436b8eccfbf7f804d Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Fri, 2 Feb 2018 10:07:26 -0500 Subject: [PATCH] Added test --- db_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db_test.go b/db_test.go index df5a7d2..81463a0 100644 --- a/db_test.go +++ b/db_test.go @@ -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)