MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / BenchmarkScanSQL

Function BenchmarkScanSQL

pkg/sql/security/scanner_test.go:597–605  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

595}
596
597func BenchmarkScanSQL(b *testing.B) {
598 scanner := NewScanner()
599 sql := "SELECT * FROM users WHERE id = 1 AND SLEEP(5) -- comment"
600
601 b.ResetTimer()
602 for i := 0; i < b.N; i++ {
603 scanner.ScanSQL(sql)
604 }
605}
606
607func TestIsSystemTable(t *testing.T) {
608 scanner := NewScanner()

Callers

nothing calls this directly

Calls 2

ScanSQLMethod · 0.95
NewScannerFunction · 0.85

Tested by

no test coverage detected