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

Function BenchmarkValidateStdinInput

cmd/gosqlx/cmd/stdin_utils_test.go:304–310  ·  view source on GitHub ↗

Benchmark tests

(b *testing.B)

Source from the content-addressed store, hash-verified

302
303// Benchmark tests
304func BenchmarkValidateStdinInput(b *testing.B) {
305 content := []byte("SELECT * FROM users WHERE id = 1")
306 b.ResetTimer()
307 for i := 0; i < b.N; i++ {
308 _ = ValidateStdinInput(content)
309 }
310}
311
312func BenchmarkWriteOutput(b *testing.B) {
313 content := []byte("SELECT * FROM users WHERE id = 1")

Callers

nothing calls this directly

Calls 1

ValidateStdinInputFunction · 0.70

Tested by

no test coverage detected