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

Method fail

driver_test.go:262–268  ·  view source on GitHub ↗
(method, query string, err error)

Source from the content-addressed store, hash-verified

260}
261
262func (dbt *DBTest) fail(method, query string, err error) {
263 dbt.Helper()
264 if len(query) > 300 {
265 query = "[query too large to print]"
266 }
267 dbt.Fatalf("error on %s %s: %s", method, query, err.Error())
268}
269
270func (dbt *DBTest) mustExec(query string, args ...any) (res sql.Result) {
271 dbt.Helper()

Callers 3

mustExecMethod · 0.95
mustQueryMethod · 0.95
TestPingFunction · 0.80

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected