MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / TestParseOne

Function TestParseOne

pkg/sql/parser/parse_test.go:3460–3465  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

3458}
3459
3460func TestParseOne(t *testing.T) {
3461 _, err := parser.ParseOne("SELECT 1; SELECT 2")
3462 if !testutils.IsError(err, "expected 1 statement") {
3463 t.Errorf("unexpected error %s", err)
3464 }
3465}
3466
3467func BenchmarkParse(b *testing.B) {
3468 testCases := []struct {

Callers

nothing calls this directly

Calls 2

ParseOneFunction · 0.92
IsErrorFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…