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

Function BenchmarkParseDSN

dsn_test.go:432–442  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

430}
431
432func BenchmarkParseDSN(b *testing.B) {
433 b.ReportAllocs()
434
435 for b.Loop() {
436 for _, tst := range testDSNs {
437 if _, err := ParseDSN(tst.in); err != nil {
438 b.Error(err.Error())
439 }
440 }
441 }
442}

Callers

nothing calls this directly

Calls 2

ParseDSNFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected