MCPcopy
hub / github.com/jackc/pgx / BenchmarkSanitizeSQL

Function BenchmarkSanitizeSQL

internal/sanitize/sanitize_bench_test.go:52–61  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

50var benchmarkNewSQLResult string
51
52func BenchmarkSanitizeSQL(b *testing.B) {
53 b.ReportAllocs()
54 var err error
55 for b.Loop() {
56 benchmarkNewSQLResult, err = sanitize.SanitizeSQL(benchmarkQuery, benchmarkArgs...)
57 if err != nil {
58 b.Fatalf("failed to sanitize SQL: %v", err)
59 }
60 }
61}

Callers

nothing calls this directly

Calls 1

SanitizeSQLFunction · 0.92

Tested by

no test coverage detected