(t *testing.T)
| 149 | } |
| 150 | |
| 151 | func TestTSQL_AtAtStillWorksInPostgreSQL(t *testing.T) { |
| 152 | // In PostgreSQL dialect, @@ should still be TokenTypeAtAt |
| 153 | tkz, err := NewWithDialect(keywords.DialectPostgreSQL) |
| 154 | if err != nil { |
| 155 | t.Fatalf("NewWithDialect error = %v", err) |
| 156 | } |
| 157 | tokens := tokenize(t, tkz, "@@") |
| 158 | if len(tokens) != 1 { |
| 159 | t.Fatalf("expected 1 token, got %d", len(tokens)) |
| 160 | } |
| 161 | if tokens[0].Token.Type != models.TokenTypeAtAt { |
| 162 | t.Errorf("expected TokenTypeAtAt, got %v", tokens[0].Token.Type) |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | func TestTSQL_NationalStringLiteral(t *testing.T) { |
| 167 | tkz := newSQLServerTokenizer(t) |
nothing calls this directly
no test coverage detected