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

Function TestTokenizerDefaultDialect

pkg/sql/parser/dialect_test.go:57–65  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

55}
56
57func TestTokenizerDefaultDialect(t *testing.T) {
58 tkz, err := tokenizer.NewWithDialect("")
59 if err != nil {
60 t.Fatal(err)
61 }
62 if tkz.Dialect() != keywords.DialectPostgreSQL {
63 t.Errorf("expected postgresql default, got %s", tkz.Dialect())
64 }
65}
66
67func TestParseWithDialect(t *testing.T) {
68 // Basic SQL should parse with any dialect

Callers

nothing calls this directly

Calls 3

NewWithDialectFunction · 0.92
ErrorfMethod · 0.65
DialectMethod · 0.45

Tested by

no test coverage detected