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

Function TestParseBytesInvalid

pkg/sql/parser/validate_test.go:72–77  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

70}
71
72func TestParseBytesInvalid(t *testing.T) {
73 _, err := parser.ParseBytes([]byte("SELECT FROM WHERE"))
74 if err == nil {
75 t.Fatal("ParseBytes should fail for invalid SQL")
76 }
77}
78
79func TestParseBytesWithTokens(t *testing.T) {
80 result, tokens, err := parser.ParseBytesWithTokens([]byte("SELECT 1"))

Callers

nothing calls this directly

Calls 1

ParseBytesFunction · 0.92

Tested by

no test coverage detected