(t *testing.T)
| 45 | } |
| 46 | |
| 47 | func TestTokenizerSetDialect(t *testing.T) { |
| 48 | tkz := tokenizer.GetTokenizer() |
| 49 | defer tokenizer.PutTokenizer(tkz) |
| 50 | |
| 51 | tkz.SetDialect(keywords.DialectMySQL) |
| 52 | if tkz.Dialect() != keywords.DialectMySQL { |
| 53 | t.Errorf("expected mysql, got %s", tkz.Dialect()) |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | func TestTokenizerDefaultDialect(t *testing.T) { |
| 58 | tkz, err := tokenizer.NewWithDialect("") |
nothing calls this directly
no test coverage detected