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

Function TestTokenizerWithDialect

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

Source from the content-addressed store, hash-verified

35}
36
37func TestTokenizerWithDialect(t *testing.T) {
38 tkz, err := tokenizer.NewWithDialect(keywords.DialectMySQL)
39 if err != nil {
40 t.Fatal(err)
41 }
42 if tkz.Dialect() != keywords.DialectMySQL {
43 t.Errorf("expected mysql, got %s", tkz.Dialect())
44 }
45}
46
47func TestTokenizerSetDialect(t *testing.T) {
48 tkz := tokenizer.GetTokenizer()

Callers

nothing calls this directly

Calls 3

NewWithDialectFunction · 0.92
ErrorfMethod · 0.65
DialectMethod · 0.45

Tested by

no test coverage detected