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

Method mustExec

driver_test.go:270–277  ·  driver_test.go::DBTest.mustExec
(query string, args ...any)

Source from the content-addressed store, hash-verified

268}
269
270func (dbt *DBTest) mustExec(query string, args ...any) (res sql.Result) {
271 dbt.Helper()
272 res, err := dbt.db.Exec(query, args...)
273 if err != nil {
274 dbt.fail("exec", query, err)
275 }
276 return res
277}
278
279func (dbt *DBTest) mustQuery(query string, args ...any) (rows *sql.Rows) {
280 dbt.Helper()

Callers 15

TestCRUDFunction · 0.80
TestNumbersToAnyFunction · 0.80
TestMultiQueryFunction · 0.80
TestIntFunction · 0.80
TestFloat32Function · 0.80
TestFloat64Function · 0.80
TestFloat64PlaceholderFunction · 0.80
TestStringFunction · 0.80
TestValuerFunction · 0.80
TestValuerWithValidationFunction · 0.80

Calls 2

failMethod · 0.95
ExecMethod · 0.45

Tested by

no test coverage detected