(t *testing.T)
| 84 | } |
| 85 | |
| 86 | func TestTSQL_TempTableStandaloneHash(t *testing.T) { |
| 87 | // In SQL Server dialect, a standalone # (not followed by identifier) should still be TokenTypeSharp |
| 88 | tkz := newSQLServerTokenizer(t) |
| 89 | tokens := tokenize(t, tkz, "# ") |
| 90 | if len(tokens) != 1 { |
| 91 | t.Fatalf("expected 1 token, got %d", len(tokens)) |
| 92 | } |
| 93 | if tokens[0].Token.Type != models.TokenTypeSharp { |
| 94 | t.Errorf("expected TokenTypeSharp, got %v", tokens[0].Token.Type) |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | func TestTSQL_TempTableNotInPostgreSQL(t *testing.T) { |
| 99 | // In PostgreSQL dialect, #temp should NOT be a single identifier |
nothing calls this directly
no test coverage detected