BenchmarkDocumentManager_Get benchmarks document retrieval
(b *testing.B)
| 398 | |
| 399 | // BenchmarkDocumentManager_Get benchmarks document retrieval |
| 400 | func BenchmarkDocumentManager_Get(b *testing.B) { |
| 401 | dm := NewDocumentManager() |
| 402 | dm.Open("file:///test.sql", "sql", 1, "SELECT * FROM users") |
| 403 | |
| 404 | b.ReportAllocs() |
| 405 | b.ResetTimer() |
| 406 | for i := 0; i < b.N; i++ { |
| 407 | _, _ = dm.Get("file:///test.sql") |
| 408 | } |
| 409 | } |
| 410 | |
| 411 | // BenchmarkDocumentManager_Update benchmarks document updates |
| 412 | func BenchmarkDocumentManager_Update(b *testing.B) { |
nothing calls this directly
no test coverage detected