(b *testing.B)
| 595 | } |
| 596 | |
| 597 | func 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 | |
| 607 | func TestIsSystemTable(t *testing.T) { |
| 608 | scanner := NewScanner() |
nothing calls this directly
no test coverage detected