MCPcopy
hub / github.com/go-sql-driver/mysql / TestEmptyQuery

Function TestEmptyQuery

driver_test.go:299–309  ·  driver_test.go::TestEmptyQuery
(t *testing.T)

Source from the content-addressed store, hash-verified

297}
298
299func TestEmptyQuery(t *testing.T) {
300 runTestsParallel(t, dsn, func(dbt *DBTest, _ string) {
301 // just a comment, no query
302 rows := dbt.mustQuery("--")
303 defer rows.Close()
304 // will hang before #255
305 if rows.Next() {
306 dbt.Errorf("next on rows must be false")
307 }
308 })
309}
310
311func TestCRUD(t *testing.T) {
312 runTestsParallel(t, dsn, func(dbt *DBTest, tbl string) {

Callers

nothing calls this directly

Calls 4

runTestsParallelFunction · 0.85
mustQueryMethod · 0.80
CloseMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected