(t *testing.T)
| 55 | } |
| 56 | |
| 57 | func 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 | |
| 67 | func TestParseWithDialect(t *testing.T) { |
| 68 | // Basic SQL should parse with any dialect |
nothing calls this directly
no test coverage detected