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

Function TestFailingCharset

driver_test.go:1595–1604  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1593}
1594
1595func TestFailingCharset(t *testing.T) {
1596 runTestsParallel(t, dsn+"&charset=none", func(dbt *DBTest, _ string) {
1597 // run query to really establish connection...
1598 _, err := dbt.db.Exec("SELECT 1")
1599 if err == nil {
1600 dbt.db.Close()
1601 t.Fatalf("connection must not succeed without a valid charset")
1602 }
1603 })
1604}
1605
1606func TestCollation(t *testing.T) {
1607 if !available {

Callers

nothing calls this directly

Calls 3

runTestsParallelFunction · 0.85
ExecMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected