(t *testing.T)
| 23 | ) |
| 24 | |
| 25 | func TestParserWithDialectOption(t *testing.T) { |
| 26 | p := NewParser(WithDialect("mysql")) |
| 27 | if p.Dialect() != "mysql" { |
| 28 | t.Errorf("expected mysql, got %s", p.Dialect()) |
| 29 | } |
| 30 | |
| 31 | p2 := NewParser() |
| 32 | if p2.Dialect() != "postgresql" { |
| 33 | t.Errorf("expected postgresql default, got %s", p2.Dialect()) |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | func TestTokenizerWithDialect(t *testing.T) { |
| 38 | tkz, err := tokenizer.NewWithDialect(keywords.DialectMySQL) |
nothing calls this directly
no test coverage detected