(t *testing.T)
| 46 | } |
| 47 | |
| 48 | func TestSQLFSWriterCreate(t *testing.T) { |
| 49 | createSQLFSTestingDatabaseOnce.Do(createSQLFSTestingDatabase) |
| 50 | db := database.GetTestingDBSingleton() |
| 51 | a := assert.New(t) |
| 52 | |
| 53 | tbl := fmt.Sprintf("%s.unittest%d", testDatabaseName, rand.Int()) |
| 54 | w, e := Create(db, tbl, database.GetSessionFromTestingDB()) |
| 55 | a.NoError(e) |
| 56 | a.NotNil(w) |
| 57 | defer w.Close() |
| 58 | |
| 59 | has, e1 := hasTable(db.DB, tbl) |
| 60 | a.NoError(e1) |
| 61 | a.True(has) |
| 62 | |
| 63 | a.NoError(dropTableIfExists(db.DB, tbl)) |
| 64 | } |
nothing calls this directly
no test coverage detected