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

Method mustQuery

driver_test.go:279–286  ·  driver_test.go::DBTest.mustQuery
(query string, args ...any)

Source from the content-addressed store, hash-verified

277}
278
279func (dbt *DBTest) mustQuery(query string, args ...any) (rows *sql.Rows) {
280 dbt.Helper()
281 rows, err := dbt.db.Query(query, args...)
282 if err != nil {
283 dbt.fail("query", query, err)
284 }
285 return rows
286}
287
288func maybeSkip(t *testing.T, err error, skipErrno uint16) {
289 mySQLErr, ok := err.(*MySQLError)

Callers 15

TestConnectionAttributesFunction · 0.95
TestEmptyQueryFunction · 0.80
TestCRUDFunction · 0.80
TestNumbersToAnyFunction · 0.80
TestMultiQueryFunction · 0.80
TestIntFunction · 0.80
TestFloat32Function · 0.80
TestFloat64Function · 0.80
TestFloat64PlaceholderFunction · 0.80
TestStringFunction · 0.80
TestRawBytesFunction · 0.80
TestRawMessageFunction · 0.80

Calls 2

failMethod · 0.95
QueryMethod · 0.45

Tested by

no test coverage detected